You are here

function pmtimetracking_view in Drupal PM (Project Management) 7.3

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

Implements hook_view().

File

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

Code

function pmtimetracking_view($node, $view_mode) {
  if ($view_mode == 'full' && node_is_page($node)) {
    $breadcrumb = array(
      array(
        'text' => t('Timetrackings'),
        'path' => 'pm/timetrackings',
      ),
    );
    pm_set_breadcrumb($breadcrumb);
  }
  return $node;
}