function secure_permissions_variable in Secure Permissions 6
Same name and namespace in other branches
- 7.2 secure_permissions.module \secure_permissions_variable()
- 7 secure_permissions.module \secure_permissions_variable()
Internal variable hook.
Parameters
$name: The name of the variable to return.
Return value
The value of the variable.
8 calls to secure_permissions_variable()
- secure_permissions_form in ./
secure_permissions.module - Configuration form for the module.
- secure_permissions_form_user_admin_new_role_alter in ./
secure_permissions.module - Implement hook_form_alter().
- secure_permissions_form_user_admin_perm_alter in ./
secure_permissions.module - Implement hook_form_alter().
- secure_permissions_form_user_admin_role_alter in ./
secure_permissions.module - Implement hook_form_alter().
- secure_permissions_menu_alter in ./
secure_permissions.module - Implement hook_menu_alter().
File
- ./
secure_permissions.module, line 46 - Secure Permissions module file.
Code
function secure_permissions_variable($name) {
if (!empty($name)) {
return variable_get($name, constant(strtoupper($name)));
}
}