function hook_dashboard_regions_alter

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

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dashboard!dashboard.api.php/function/hook_dashboard_regions_alter/7.x