You are here

function group_role_exists in Group 7

Check whether a group role machine name exists.

1 string reference to 'group_role_exists'
group_role_form in admin/group_role.inc
Generates the group role editing form.

File

helpers/group.inc, line 147
Group related helper functions.

Code

function group_role_exists($name) {
  return in_array($name, array(
    'anonymous',
    'outsider',
    'member',
  )) || !!group_role_load($name);
}