hook_dashboard_regions_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 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']);
}
?>