Show/hide different sections

danielb - August 10, 2009 - 02:48
Project:API
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

This is what I mean by sections:

Topics
Files
Globals
Constants
Functions
API Search

Only 'files' and 'functions' actually have content when you click the links - so what is the best way to hide the empty pages like 'globals' and 'constants'?

Also the search one just leads to a page that has the same thing as the block, and I haven't bothered to write up any 'topics' so I guess those links can go too.

#1

danielb - August 10, 2009 - 04:47

This list of sections should be handled by the menu module allowing me to disable links and to add custom links via the menu interface.

#2

drumm - August 11, 2009 - 02:00
Category:support request» feature request

By default, it would be good to remove links that don't have content. This would be an additional query, something along the lines of SELECT DISTINCT object_type FROM {api_documentation} WHERE branch_name = '%s'.

I agree with moving to the menu system, but when I looked at it last, it didn't look like an easy task.

 
 

Drupal is a registered trademark of Dries Buytaert.