You are here

function patterns_form_helper in Patterns 6

Same name and namespace in other branches
  1. 5 patterns.module \patterns_form_helper()
  2. 6.2 patterns.module \patterns_form_helper()
  3. 7.2 includes/forms/helper.inc \patterns_form_helper()
  4. 7 includes/forms/helper.inc \patterns_form_helper()
3 string references to 'patterns_form_helper'
patterns_exit in ./patterns.module
patterns_form_alter in ./patterns.module
patterns_settings in ./patterns.module
Display the pattern settings form

File

./patterns.module, line 2094
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

function patterns_form_helper($form, $form_state) {
  static $form_id;
  if (!$form_id && $form_state['submitted'] && !form_get_errors()) {
    $form_id = $form_state['values']['form_id'];
    $_SESSION['patterns_form_helper'] = array(
      'form_id' => $form_id,
      'form_values' => $form_state['values'],
    );
  }
  return $form;
}