You are here

function pmticket_view in Drupal PM (Project Management) 7.3

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

Implements hook_view().

File

pmticket/pmticket.module, line 66
Main module file for the PM Ticket module.

Code

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