You are here

function pmtimetracking_pm_dashboard_links in Drupal PM (Project Management) 7

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

Implements hook_pm_dashboard_links().

File

pmtimetracking/pmtimetracking.module, line 797
Main module functions for PM Timetracking.

Code

function pmtimetracking_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Timetrackings'),
      'icon' => 'pmtimetrackings',
      'path' => 'pm/timetrackings',
      'params' => array(),
      'node_type' => 'pmtimetracking',
      'add_type' => 'pmtimetracking',
      'map' => array(),
      'weight' => 8,
    );
  }
  return $links;
}