function patterns_form_helper in Patterns 5
Same name and namespace in other branches
- 6.2 patterns.module \patterns_form_helper()
- 6 patterns.module \patterns_form_helper()
- 7.2 includes/forms/helper.inc \patterns_form_helper()
- 7 includes/forms/helper.inc \patterns_form_helper()
3 string references to 'patterns_form_helper'
File
- ./
patterns.module, line 1251 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_form_helper($form) {
global $form_submitted;
// static $form_id, $form_values;
$args = func_get_args();
if (!$form_id && $form_submitted) {
$form_values = $args[1];
$form_id = $form_values['form_id'];
$_SESSION['patterns_form_helper'] = array(
'form_id' => $form_id,
'form_values' => $form_values,
);
}
return $form;
}