You are here

function formdefaults_data in Form Defaults 7

Same name and namespace in other branches
  1. 5.3 formdefaults.admin.inc \formdefaults_data()
  2. 6.2 formdefaults.admin.inc \formdefaults_data()
2 calls to formdefaults_data()
formdefaults_import in ./formdefaults.admin.inc
formdefaults_import_submit in ./formdefaults.admin.inc

File

./formdefaults.admin.inc, line 168
formdefaults.admin.inc Include for formdefaults administration screen.

Code

function formdefaults_data($data = '') {
  static $d = '';
  if (!$d) {
    $d = @$_SESSION['formdefaults_data'];
  }

  // if (!$d) $d=array();
  if ($data) {
    $d = $data;
  }
  $_SESSION['formdefaults_data'] = $d;
  return $d;
}