You are here

function simple_access_get_profiles_select in Simple Access 7.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \simple_access_get_profiles_select()
  2. 5.2 simple_access.module \simple_access_get_profiles_select()
  3. 6.2 simple_access.module \simple_access_get_profiles_select()

Get all profiles as options for a select list.

3 calls to simple_access_get_profiles_select()
simple_access_form in ./simple_access.module
Simple Access form.
simple_access_profile_disable_form in ./simple_access.module
Configure disable security profile.
simple_access_profile_enable_form in ./simple_access.module
Configure enable security profile.

File

./simple_access.module, line 602
This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.

Code

function simple_access_get_profiles_select() {
  $profiles = simple_access_get_profiles();
  return array_map('_simple_access_filter_profiles', $profiles);
}