You are here

function patterns_exit in Patterns 5

Same name and namespace in other branches
  1. 6.2 patterns.module \patterns_exit()
  2. 6 patterns.module \patterns_exit()
  3. 7.2 includes/unused.inc \patterns_exit()
  4. 7 includes/unused.inc \patterns_exit()

File

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

Code

function patterns_exit($destination = null) {
  if (variable_get('patterns_form_helper', true) && $_SESSION['patterns_form_helper'] && !$destination) {
    print theme('patterns_form_helper', $_SESSION['patterns_form_helper']['form_id'], $_SESSION['patterns_form_helper']['form_values']);

    //unset($_SESSION['patterns_form_helper']);
  }
}