hook_dashboard_regions_alter

Versions
7
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

Code

modules/dashboard/dashboard.api.php, line 35

<?php
function hook_dashboard_regions_alter($regions) {
  // Remove the sidebar region defined by the core dashboard module.
  unset($regions['dashboard_sidebar']);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.