I have an entity form(theme page to display it) .
I have used hook_node_view()
to handle breadcrumbs for nodes.
But I don't find any place to handle this $breadcrumb
when I have a form and a theme page for it.
This is how I got the $breadcrumb
for my news.
/**
* Implements hook_node_view().
*/
function news_node_view($node, $view_mode, $langcode) {
if ($node->type == 'news' && $view_mode == 'full') {
//BREADCRUMB ////
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l('News', 'news');
drupal_set_title('News');
drupal_set_breadcrumb($breadcrumb);
}
}
I have hook functions like:
hook_init()
hook_menu()
hook_form()
hook_form_validate()
hook_form_submit()
hook_theme()
hook_preprocess_form()
But I don't find a place to work on $breadcrumb
, or somehow manage it.