You are here

function access_scheme_names in Access Control Kit 7

Returns a list of all defined access scheme names.

Return value

array An array of access scheme names, keyed by machine name.

10 calls to access_scheme_names()
AccessSchemeFunctionTest::testSchemeCRUD in ./access.test
Test basic create, read, update, and delete functions.
access_admin_grants_filters in ./access_grants.admin.inc
Lists access grant administration filters that can be applied.
access_entity_info in ./access.module
Implements hook_entity_info().
access_field_extra_fields in ./access.module
Implements hook_field_extra_fields().
access_grant_multiple_delete_confirm in ./access_grants.admin.inc
Form constructor for the access grant multiple delete confirmation form.

... See full list

2 string references to 'access_scheme_names'
access_scheme_static_reset in ./access.module
Clear all static cache variables for access schemes.
access_views_data in ./access.views.inc
Implements hook_views_data().

File

./access.module, line 331
The access control kit module.

Code

function access_scheme_names() {
  $names =& drupal_static(__FUNCTION__);
  if (!isset($names)) {
    $names = db_query('SELECT machine_name, name FROM {access_scheme} ORDER BY name')
      ->fetchAllKeyed();
  }
  return $names;
}