function hook_oa_access_permission_alter in Open Atrium Core 7.2
Alter the Open Atrium permissions.
Parameters
array $perms: Associative array keyed with the permission name containing associative arrays with the following keys:
- title: Human readable name of the permission.
- description: Human readable description of the permission.
- module: The machine name of the module which defines it.
See also
Related topics
1 function implements hook_oa_access_permission_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- oa_access_test_oa_access_permission_alter in modules/
oa_access/ tests/ oa_access_test/ oa_access_test.module - Implements hook_oa_access_permission_alter().
1 invocation of hook_oa_access_permission_alter()
- oa_access_get_permissions in modules/
oa_access/ oa_access.module - Get all permissions defined by implementing modules.
File
- modules/
oa_access/ oa_access.api.php, line 67 - Contains documentation about the Open Atrium Access module's hooks.
Code
function hook_oa_access_permission_alter(&$perms) {
// Give this permission a more awesome title.
if (isset($perms['do something awesome'])) {
$perms['do something awesome']['title'] = t('Do something so completely and totally AWESOME!!!!');
}
}