function authcache_validate_duration_select in Authenticated User Page Caching (Authcache) 7.2
Validation callback for authcache_duration_select element.
Related topics
1 string reference to 'authcache_validate_duration_select'
- authcache_element_info in ./
authcache.module - Implements hook_element_info().
File
- ./
authcache.module, line 1275 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_validate_duration_select($element, &$form_state) {
$value = $element['select']['#value'] === 'custom' ? $element['custom']['#value'] : $element['select']['#value'];
form_set_value($element, $value, $form_state);
}