You are here

function pmissue_pm_dashboard_links in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmissue/pmissue.module \pmissue_pm_dashboard_links()
  2. 7.2 pmissue/pmissue.module \pmissue_pm_dashboard_links()

Implements hook_pm_dashboard_links().

File

pmissue/pmissue.module, line 137
Hook implementations for PM Issue.

Code

function pmissue_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Issues'),
      'icon' => 'pmissues',
      'path' => 'pm/issues',
      'params' => array(),
      'node_type' => 'pmissue',
      'add_type' => 'pmissue',
      'map' => array(),
      'weight' => 5,
    );
  }
  return $links;
}