You are here

function pmexpense_pm_dashboard_links in Drupal PM (Project Management) 8

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

Implements hook_pm_dashboard_links().

File

pmexpense/pmexpense.module, line 90
Hook implementations and main functions for PM Expense.

Code

function pmexpense_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Expenses'),
      'icon' => 'pmexpenses',
      'path' => 'pm/expenses',
      'params' => array(),
      'node_type' => 'pmexpense',
      'add_type' => 'pmexpense',
      'map' => array(),
      'weight' => 11,
    );
  }
  return $links;
}