You are here

function patterns_form_helper in Patterns 5

Same name and namespace in other branches
  1. 6.2 patterns.module \patterns_form_helper()
  2. 6 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_init in ./patterns.module

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