navigation_bar module hooks - Hooks created by the navigation_bar module
hook_navigation_bar_list
Parameters:
none
Returns:
array(
'Link name' => array(
'#optional' => bool - can this link be disabled
'#destination' => string - internal url of this link
OR NULL - allow user to enter custom URL (including external)
OR array() - url options, key=blank is treated as NULL above
'#destination_reg' => string - regex matching valid #destination
'#text' => array('String 1', 'String 2') - Alternate names for link
'#text_reg' => string - regex matching valid #text
'#modify_custom_dest' => string - NULL #destination is placed in this delineated string
)...
)
Description:
Return an array describing all links available for the navigation bar.
'#toggles' => array(
$name => array('text' => $text, 'value' => $value, 'enabled' => $enabled),
...
),
);
Including such a field in any form will embed checkboxes to enable/disable navigation bar elements.
$name, $text, $value, and $enabled should match the structure of the navigation_bar table with $text, $value, and $enabled in this case providing defaults if no entry exists yet.