You are here

function authcache_form_value_set_cacheable in Authenticated User Page Caching (Authcache) 7.2

Recursively find elements of type value and set them cacheable.

Related topics

1 call to authcache_form_value_set_cacheable()
_authcache_default_form_after_build in ./authcache.module
Form API default after-build callback for forms on cacheable pages.

File

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

Code

function authcache_form_value_set_cacheable(&$element) {
  if (isset($element['#type']) && $element['#type'] === 'value') {
    authcache_element_set_cacheable($element);
  }
  foreach (element_children($element, FALSE) as $key) {
    authcache_form_value_set_cacheable($element[$key]);
  }
}