You are here

function pmproject_view in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmproject/pmproject.module \pmproject_view()
  2. 7 pmproject/pmproject.module \pmproject_view()
  3. 7.2 pmproject/pmproject.module \pmproject_view()

Implements hook_view().

File

pmproject/pmproject.module, line 64
Main module file for the PM Project module.

Code

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