dashboard_system_info_alter

Versions
7
dashboard_system_info_alter(&$info, $file, $type)

Implements hook_system_info_alter().

Add regions to each theme to store the dashboard blocks.

Code

modules/dashboard/dashboard.module, line 159

<?php
function dashboard_system_info_alter(&$info, $file, $type) {
  if ($type == 'theme') {
    $info['regions'] += dashboard_region_descriptions();
    if (module_exists('overlay')) {
      $info['overlay_regions'] = !empty($info['overlay_regions']) ? array_merge($info['overlay_regions'], dashboard_regions()) : dashboard_regions();
    }
  }
}
?>
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.