function asaf_form_pagecache_process in Asaf (ajax submit for any form) 8
Same name and namespace in other branches
- 7 asaf.module \asaf_form_pagecache_process()
1 string reference to 'asaf_form_pagecache_process'
- asaf_prepare_form in ./
asaf.module - Attach ajax handlers to the specified buttons.
File
- ./
asaf.module, line 191 - Main module file.
Code
function asaf_form_pagecache_process($form, &$form_state) {
$form['asaf_form']['#value'] = asaf_get_security_token($form['#form_id'], $form['#build_id']);
$form_options = array(
'needed_files' => !empty($form_state['build_info']['files']) ? $form_state['build_info']['files'] : array(),
);
// Saving form options (first of all needed_files) for the half of the year
cache_set('asaf_form_' . $form['#form_id'] . '_options', $form_options, 'cache_form', REQUEST_TIME + 15768000);
return $form;
}