You are here

function farm_access_roles in farmOS 7

Load a list of farm roles.

Return value

array Returns an array of farm role names.

18 calls to farm_access_roles()
farm_access_current_perms in modules/farm/farm_access/farm_access.module
Gets a list of the permissions currently assigned to farm roles.
farm_access_entity_bundles_role_perms in modules/farm/farm_access/farm_access.module
Generate permission lists for farm entity bundles for a given role.
farm_access_farm_access_perms in modules/farm/farm_access/farm_access.module
Implements hook_farm_access_perms().
farm_access_form_alter in modules/farm/farm_access/farm_access.module
Implements hook_form_alter().
farm_access_roles_create in modules/farm/farm_access/farm_access.module
Create farm roles.

... See full list

1 string reference to 'farm_access_roles'
farm_access_update_7000 in modules/farm/farm_access/farm_access.install
Enable the Farm Access Roles module.

File

modules/farm/farm_access/farm_access.module, line 219
Farm Access module.

Code

function farm_access_roles() {

  // Invoke hook_farm_access_roles() to get a list of roles.
  return module_invoke_all('farm_access_roles');
}