function pmexpense_pm_dashboard_links in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmexpense/pmexpense.module \pmexpense_pm_dashboard_links()
- 7.3 pmexpense/pmexpense.module \pmexpense_pm_dashboard_links()
- 7 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;
}