function hook_hansel_get_parent in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 hansel.hooks.inc \hook_hansel_get_parent()
Get parent item for this path.
This function is used for the "add parents" breadcrumbs action. Any module can extend this action to define new relations between pages, for example a panels node can be defined as a parent of the node in the pane.
Parameters
string $path :
Return value
array
2 functions implement hook_hansel_get_parent()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- menu_hansel_get_parent in ./
hansel.actions.inc - Implements hook_hansel_get_parent().
- path_hansel_get_parent in ./
hansel.actions.inc - Implements hook_hansel_get_parent().
1 invocation of hook_hansel_get_parent()
- hansel_action_add_parents_get_crumbs in ./
hansel.actions.inc - Callback for the "add single link" breadcrumb action to generate the crumbs.
File
- ./
hansel.hooks.inc, line 75 - Hansel hook documentation
Code
function hook_hansel_get_parent($path) {
if ($has_parent) {
return array(
'path' => $parent_path,
'title' => $parent_title,
);
}
return FALSE;
}