You are here

function pmteam_view in Drupal PM (Project Management) 7.3

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

Implements hook_view().

File

pmteam/pmteam.module, line 86
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(
      array(
        'text' => t('Teams'),
        'path' => 'pm/teams',
      ),
    );
    pm_set_breadcrumb($breadcrumb);
  }
  return $node;
}