spaces_dashboard.api.php in Spaces 7
Same filename and directory in other branches
Hooks provided by Spaces Dashboard.
File
spaces_dashboard/spaces_dashboard.api.phpView source
<?php
/**
* @file
* Hooks provided by Spaces Dashboard.
*/
/**
* Alter the default dashboard access settings for a given block.
*
* @param &$access
* An associative array of block `bid`, ie. "{$module}-{$delta}", to access
* boolean value. Blocks with a TRUE value are accessible, blocks with a
* FALSE value are inaccessible.
* @return
* The return value is unused. Your hook implementation should alter the
* $access parameter directly.
*/
function hook_spaces_dashboard_access_alter(&$access) {
// Don't allow access to any blocks from the menu module on the dashboard.
if ($block->module === 'menu') {
$access = FALSE;
}
}
Functions
Name | Description |
---|---|
hook_spaces_dashboard_access_alter | Alter the default dashboard access settings for a given block. |