You are here

function pmexpense_view in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pmexpense/pmexpense.module \pmexpense_view()
  2. 7.3 pmexpense/pmexpense.module \pmexpense_view()
  3. 7.2 pmexpense/pmexpense.module \pmexpense_view()

Implements hook_view().

File

pmexpense/pmexpense.module, line 713
Hook implementations and main functions for PM Expense.

Code

function pmexpense_view($node, $view_mode) {
  $breadcrumb = array();
  $breadcrumb[] = l(t('Project Management'), 'pm');
  $breadcrumb[] = l(t('Expenses'), 'pm/expenses');
  drupal_set_breadcrumb($breadcrumb);
  return theme('pmexpense_view', array(
    'node' => $node,
    'view_mode' => $view_mode,
  ));
}