You are here

function pmorganization_pm_dashboard_links in Drupal PM (Project Management) 7

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

Implements hook_pm_dashboard_links().

File

pmorganization/pmorganization.module, line 669

Code

function pmorganization_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Organizations'),
      'icon' => 'pmorganizations',
      'path' => 'pm/organizations',
      'params' => array(),
      'node_type' => 'pmorganization',
      'add_type' => 'pmorganization',
      'map' => array(),
      'weight' => 1,
    );
  }
  return $links;
}