You are here

function pmteam_view in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmteam/pmteam.module \pmteam_view()
  2. 7.3 pmteam/pmteam.module \pmteam_view()
  3. 7 pmteam/pmteam.module \pmteam_view()

Implements hook_view().

File

pmteam/pmteam.module, line 83
Main module file for the PM Team module.

Code

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