function formdefaults_getform in Form Defaults 6
Same name and namespace in other branches
- 8 formdefaults.module \formdefaults_getform()
- 5.3 formdefaults.module \formdefaults_getform()
- 5 formdefaults.module \formdefaults_getform()
- 5.2 formdefaults.module \formdefaults_getform()
- 6.2 formdefaults.module \formdefaults_getform()
- 7 formdefaults.module \formdefaults_getform()
Retrieve from alterations from the database @formid the form id to retrieve.
3 calls to formdefaults_getform()
- formdefaults_edit in ./
formdefaults.module - Form to edit the field title and description.
- formdefaults_edit_submit in ./
formdefaults.module - formdefaults_form_alter in ./
formdefaults.module - implements hook_form_alter
File
- ./
formdefaults.module, line 359
Code
function formdefaults_getform($formid) {
$result = db_query('SELECT * FROM {formdefaults_forms} WHERE formid=\'%s\'', $formid);
$form = db_fetch_object($result);
if ($form) {
$formarray = unserialize($form->formdata);
}
else {
$formarray = array();
}
return $formarray;
}