You are here

function pmtimetracking_view in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 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 79
Main module functions for PM Timetracking.

Code

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