You are here

function authcache_element_info in Authenticated User Page Caching (Authcache) 7.2

Implements hook_element_info().

Related topics

File

./authcache.module, line 1115
Authenticated User Page Caching (and anonymous users, too!)

Code

function authcache_element_info() {
  $types['authcache_role_restrict'] = array(
    '#input' => TRUE,
    '#tree' => TRUE,
    '#process' => array(
      'authcache_process_role_restrict',
      'form_process_container',
    ),
    '#element_validate' => array(
      'authcache_validate_role_restrict',
    ),
    '#theme_wrappers' => array(
      'container',
    ),
    '#members_only' => FALSE,
  );
  $types['authcache_duration_select'] = array(
    '#input' => TRUE,
    '#process' => array(
      'authcache_process_duration_select',
    ),
    '#element_validate' => array(
      'authcache_validate_duration_select',
    ),
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
  return $types;
}