function hook_dashboard_regions_alter

7.x dashboard.api.php hook_dashboard_regions_alter(&$regions)

Alter dashboard regions provided by modules.

Parameters

$regions: An array containing all dashboard regions, in the format provided by hook_dashboard_regions().

Related topics

1 invocation of hook_dashboard_regions_alter()
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 35
Hooks provided by the Dashboard module.

Code

function hook_dashboard_regions_alter(&$regions) {
  // Remove the sidebar region defined by the core dashboard module.
  unset($regions['dashboard_sidebar']);
}