You are here

function pmnote_view in Drupal PM (Project Management) 7.2

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

Implements hook_view().

File

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

Code

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