function form_test_storage_page_cache_old_build_id in Drupal 7
Form element #after_build callback: output the old form build-id.
1 string reference to 'form_test_storage_page_cache_old_build_id'
- form_test_storage_page_cache_form in modules/
simpletest/ tests/ form_test.module - A simple form for testing form storage when page caching is enabled.
File
- modules/
simpletest/ tests/ form_test.module, line 907 - Helper module for the form API tests.
Code
function form_test_storage_page_cache_old_build_id($form) {
if (isset($form['#build_id_old'])) {
$form['test_build_id_old']['#markup'] = check_plain($form['#build_id_old']);
}
return $form;
}