Skip navigation
Help

hook_dashboard_regions_alter

7 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()

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