function pmtask_view in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmtask/pmtask.module \pmtask_view()
- 7 pmtask/pmtask.module \pmtask_view()
- 7.2 pmtask/pmtask.module \pmtask_view()
Implements hook_view().
File
- pmtask/
pmtask.module, line 64 - Hook implementations for PM Task.
Code
function pmtask_view($node, $view_mode) {
if ($view_mode == 'full' && node_is_page($node)) {
$breadcrumb = array(
l(t('Project Management'), 'pm'),
l(t('Tasks'), 'pm/tasks'),
);
drupal_set_breadcrumb($breadcrumb);
}
return $node;
}