function hook_dashboard_regions

7.x dashboard.api.php hook_dashboard_regions()

Add regions to the dashboard.

Return value

An array whose keys are the names of the dashboard regions and whose values are the titles that will be displayed in the blocks administration interface. The keys are also used as theme wrapper functions.

Related topics

1 function implements hook_dashboard_regions()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

dashboard_dashboard_regions in drupal/modules/dashboard/dashboard.module
Implements hook_dashboard_regions().
1 invocation of hook_dashboard_regions()
dashboard_region_descriptions in drupal/modules/dashboard/dashboard.module
Returns an array of dashboard region descriptions, keyed by region name.

File

drupal/modules/dashboard/dashboard.api.php, line 21
Hooks provided by the Dashboard module.

Code

function hook_dashboard_regions() {
  // Define a new dashboard region. Your module can also then define
  // theme_mymodule_dashboard_region() as a theme wrapper function to control
  // the region's appearance.
  return array('mymodule_dashboard_region' => "My module's dashboard region");
}