function hook_dashboard_regions_alter
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
Code
function hook_dashboard_regions_alter(&$regions) {
// Remove the sidebar region defined by the core dashboard module.
unset($regions['dashboard_sidebar']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.