You are here

function patterns_exit in Patterns 7.2

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

File

includes/unused.inc, line 474
Functions that are unused at the moment.

Code

function patterns_exit($destination = NULL) {
  $batch =& batch_get();
  if (variable_get('patterns_form_helper', FALSE) && $_SESSION['patterns_form_helper'] && !$destination && empty($batch)) {
    if (module_exists('devel')) {

      //dpm($_SESSION['patterns_form_helper']);
      kprint_r($_SESSION['patterns_form_helper']);
    }
    else {
      print theme('patterns_form_helper', $_SESSION['patterns_form_helper']['form_id'], $_SESSION['patterns_form_helper']['form_values']);
    }
  }
}