You are here

function content_access_get_roles_and_author in Content Access 5

2 calls to content_access_get_roles_and_author()
content_access_admin_settings in ./content_access.module
content_access_page_form in ./content_access.module
Builds per node setting page form without requiring a node. Used by content_access_action_set_node_permissions_form().

File

./content_access.module, line 456

Code

function content_access_get_roles_and_author() {
  static $roles;
  if (!isset($roles)) {
    $roles = array(
      'author' => t('author'),
    ) + array_map('filter_xss_admin', user_roles());
  }
  return $roles;
}