function pmexpense_view in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmexpense/pmexpense.module \pmexpense_view()
- 7 pmexpense/pmexpense.module \pmexpense_view()
- 7.2 pmexpense/pmexpense.module \pmexpense_view()
Implements hook_view().
File
- pmexpense/
pmexpense.module, line 66 - Hook implementations and main functions for PM Expense.
Code
function pmexpense_view($node, $view_mode) {
if ($view_mode == 'full' && node_is_page($node)) {
$breadcrumb = array(
array(
'text' => t('Expenses'),
'path' => 'pm/expenses',
),
);
pm_set_breadcrumb($breadcrumb);
}
return $node;
}