You are here

function pmnote_view in Drupal PM (Project Management) 7.3

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

Implements hook_view().

File

pmnote/pmnote.module, line 66
Functions for the PM Note module.

Code

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