You are here

function og_get_global_roles in Organic groups 7

Get global roles - roles that belong to non-existent group ID 0.

Return value

A keyed array with role Id as key and role name as value.

10 calls to og_get_global_roles()
OgDefaultAccessFieldTestCase::testOgDefaultAccessField in ./og.test
Test groups with default access field enabled or disabled.
OgFieldAccessTestCase::testOgFieldAccess in og_field_access/og_field_access.test
Group with access field.
OgGroupApi::testOgAccessEntity in ./og.test
Verify og_user_access_entity() returns correct value.
OgUiSubscribeTestCase::testOgUiAddPeople in og_ui/og_ui.test
Testing adding people via group/[entity_type]/[etid]/admin/people/add-user.
OgUnInstallTestCase::testOgInstall in ./og.test
Instaill, uninstall and re-install.

... See full list

File

./og.module, line 2399
Enable users to create and manage groups with roles and permissions.

Code

function og_get_global_roles() {
  return og_roles();
}