You are here

function pmtimetracking_view in Drupal PM (Project Management) 7

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

Implements hook_view().

File

pmtimetracking/pmtimetracking.module, line 604
Main module functions for PM Timetracking.

Code

function pmtimetracking_view($node, $view_mode) {
  if ($view_mode == 'full' && node_is_page($node)) {
    $breadcrumb = array();
    $breadcrumb[] = l(t('Project Management'), 'pm');
    $breadcrumb[] = l(t('Timetrackings'), 'pm/timetrackings');
    drupal_set_breadcrumb($breadcrumb);
  }
  return theme('pmtimetracking_view', array(
    'node' => $node,
    'view_mode' => $view_mode,
  ));
}