You are here

function patterns_form_helper in Patterns 7

Same name and namespace in other branches
  1. 5 patterns.module \patterns_form_helper()
  2. 6.2 patterns.module \patterns_form_helper()
  3. 6 patterns.module \patterns_form_helper()
  4. 7.2 includes/forms/helper.inc \patterns_form_helper()

@TODO Doc.

3 string references to 'patterns_form_helper'
drush_patterns_form_helper in ./patterns.drush.inc
patterns list command callback.
patterns_config_settings in includes/config.inc
Display the pattern settings form. @TODO proper doc.
patterns_exit in includes/unused.inc

File

includes/forms/helper.inc, line 11
Functions, forms related to the Patterns editor.

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;
}