function formdefaults_data in Form Defaults 7
Same name and namespace in other branches
- 5.3 formdefaults.admin.inc \formdefaults_data()
- 6.2 formdefaults.admin.inc \formdefaults_data()
2 calls to formdefaults_data()
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;
}