You are here

function pmticket_pm_dashboard_links in Drupal PM (Project Management) 8

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

Implements hook_pm_dashboard_links().

File

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

Code

function pmticket_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Tickets'),
      'icon' => 'pmtickets',
      'path' => 'pm/tickets',
      'params' => array(),
      'node_type' => 'pmticket',
      'add_type' => 'pmticket',
      'map' => array(),
      'weight' => 6,
    );
  }
  return $links;
}