manage module - Hooks created by the manage module
- These hooks populate the navigation bars in the admin theme and modify the user dashboard
hook_manage_whereami
Parameters:
$page => string - current path (e.g. manage/content)
$type => optional string - current content type (e.g. blog)
Returns:
NULL (default and most common case)
array(
'section' => content|media|tools|settings
'subsection' => string (usually module name)
)
)
Description:
Return an array designating where in the manage interface we are.
For purposes of building and highlighting nav bars.
hook_manage_admin
Parameters:
$page => string - current path if available (e.g. manage/content)
Returns:
array(
[SECTION][SUBSECTION]['top|view|left'][KEY] => array(
'#name' => string - display name
'#link' => string - link for l() calls
'#weight' => int - for sorting
'#activation' => array(
'page|pagestart|section' => array(strings - paths or subsections), - If the current page, first n characters of page, or subsection match something in the array, this link will have the class "active" appended.
),
'#options' => array() - to be passed to l()
'#mobile_priority' => int - How important is it to display this on mobile sites? Starting defaults are 0 for not displayed. 1+ for displayed.
)
)
Description:
Return an array describing links to be placed in the admin page navigation bars. This will be invoked up to two times per page load. The first invocation will pass in a blank value for $page. Whatever results are returned will be cached in the cache_menu table. The second invocation will pass the current path as $page. This result will not be cached. The SECTION and SUBSECTION keys should match the results of some module's results for hook_manage_whereami
hook_manage_cancel_recent_change_entry
Parameters:
$node => a fully-loaded node (usually one that is being modified currently)
$op => string - the operation being performed on the node.
Returns:
NULL/false (default and most common case)
TRUE - if this $op on this $node doesn't merit an entry
hook_manage_settings_url
Parameters:
none
Returns
string - path/to/a/settings/page
Description
If this module has a default settings page, this hook returns the path for easy access throughout the admin UI
hook_manage_node_redirect
Parameters:
$type => string - a node type
Returns:
NULL|string - an internal path
Description:
If this module provides the management interface for a content type, it should return the path to the main management page. This allows the node form to redirect to a more useful default location.