function pm_pm_dashboard_types in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 7 pm.module \pm_pm_dashboard_types()
Implements hook_pm_dashboard_types().
File
- ./
pm.module, line 249 - Main module file for the Project Management module.
Code
function pm_pm_dashboard_types() {
return array(
'page' => array(
// URL: menu path which should be used, if omitted no menu item will be
// created.
'url' => 'pm',
// Title: Required. Title of menu item, page title and title for the pm
// settings.
'title' => t('Project Management'),
// Description: Required. Description for the fieldset in the pm
// settings.
'description' => t('You can disable or reorder the links from the !dashboard here', array(
'!dashboard' => l(t('dashboard'), 'pm'),
)),
// Theme: theme which should be used to display this dashboard.
// If omitted uses standard theme pm_dashboard.
'theme' => 'pm_dashboard',
// Menu_options: This array will be merged into the default menu item
// array. If the menu should have special access arguments, title, it can
// be set here.
// Page callback and page argument shouldn't been overwritten.
'menu_options' => array(
'title' => t('Project Management'),
'description' => t('Project Management dashboard'),
),
),
'block' => array(
'title' => t('Dashboard block'),
'description' => t('You can disable or reorder the links from the dashboard !block here', array(
'!block' => l(t('block'), 'admin/build/block'),
)),
'theme' => 'pm_dashboard_block',
),
);
}