function permissions_lock_get_locked_permissions in Permissions Lock 7
Get an array of locked permissions
Return value
array
2 calls to permissions_lock_get_locked_permissions()
- permissions_lock_form_alter in ./
permissions_lock.module - Implements hook_form_alter().
- permissions_lock_settings_form in ./
permissions_lock.module - Settings form to control which permissions and / or roles have to be locked
File
- ./
permissions_lock.module, line 218 - Lock permissions on the permissions administration pages for certain roles
Code
function permissions_lock_get_locked_permissions() {
$locked = variable_get('permissions_lock_locked_perm', array());
$hook_locks = permissions_lock_get_hook_data('permission');
$locked = array_merge($locked, $hook_locks);
return array_filter($locked);
}