You are here

function pmnote_view in Drupal PM (Project Management) 7

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

Implements hook_view().

File

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

Code

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