hook_dashboard_regions

Versions
7
hook_dashboard_regions()

Adds regions to the dashboard.

Return value

An array whose keys are the names of the dashboard regions and whose values are the titles that will be displayed in the blocks administration interface. The keys are also used as theme wrapper functions.

Related topics

Code

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

<?php
function hook_dashboard_regions() {
  // Define a new dashboard region. Your module can also then define
  // theme_mymodule_dashboard_region() as a theme wrapper function to control
  // the region's appearance.
  return array('mymodule_dashboard_region' => "My module's dashboard region");
}
?>
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.