You are here

function hook_dashboard_regions_alter in Drupal 7

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 modules/dashboard/dashboard.module
Returns an array of dashboard region descriptions, keyed by region name.

File

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']);
}