You are here

function pmtask_pm_dashboard_links in Drupal PM (Project Management) 7

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

Implements hook_pm_dashboard_links().

File

pmtask/pmtask.module, line 1027

Code

function pmtask_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Tasks'),
      'icon' => 'pmtasks',
      'path' => 'pm/tasks',
      'params' => array(),
      'node_type' => 'pmtask',
      'add_type' => 'pmtask',
      'map' => array(),
      'weight' => 5,
    );
  }
  return $links;
}