You are here

function pm_pm_dashboard_types in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 7.2 pm.module \pm_pm_dashboard_types()

Implements hook_pm_dashboard_types().

Return value

array Definition of dashboard type.

File

./pm.module, line 349
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 Dashboard'),
      // 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',
    ),
  );
}