function og_rules_user_has_permission_options_list in Organic groups 7
Same name and namespace in other branches
- 7.2 og.rules.inc \og_rules_user_has_permission_options_list()
Condition user has group permission options list callback for permissions.
1 string reference to 'og_rules_user_has_permission_options_list'
- og_rules_condition_info in ./
og.rules.inc - Implements hook_rules_condition_info().
File
- ./
og.rules.inc, line 451 - Rules integration for the Organic groups module.
Code
function og_rules_user_has_permission_options_list() {
$perms = array();
foreach (og_get_permissions() as $perm => $value) {
// By keeping them keyed by module we can use optgroups with the
// 'select' type.
$perms[$value['module']][$perm] = strip_tags($value['title']);
}
return $perms;
}