You are here

function pminvoice_pm_dashboard_links in Drupal PM (Project Management) 7

Implements hook_pm_dashboard_links().

File

pminvoice/pminvoice.module, line 1078
1: Hooks (help, perm, init, menu, theme, node_info) 2: Access functions 3: Load organization and project details 4: Invoice create / edit form 5: Invoice node manipulation functions 6: Admin settings 7: Views hook 8: Project Managementinvoiceitem…

Code

function pminvoice_pm_dashboard_links($type) {
  $links = array();
  if ($type == 'page' || $type == 'block') {
    $links[] = array(
      'theme' => 'pm_dashboard_link',
      'title' => t('Invoices'),
      'icon' => 'pminvoices',
      'path' => 'pm/invoices',
      'params' => array(),
      'node_type' => 'pminvoice',
      'add_type' => 'pminvoice',
      'map' => array(),
      'weight' => 10,
    );
  }
  return $links;
}