function formdefaults_edit in Form Defaults 5.3
Same name and namespace in other branches
- 5 formdefaults.module \formdefaults_edit()
- 5.2 formdefaults.module \formdefaults_edit()
- 6.2 formdefaults.module \formdefaults_edit()
- 6 formdefaults.module \formdefaults_edit()
- 7 formdefaults.module \formdefaults_edit()
Edit form defaults
Parameters
String $formid:
String $field:
Return value
output
3 string references to 'formdefaults_edit'
- formdefaults_alterform in ./
formdefaults.module - Alters the form based on the form replacement items passed.
- formdefaults_form_alter in ./
formdefaults.module - implements hook_form_alter
- formdefaults_menu in ./
formdefaults.module - Implements hook_menu.
File
- ./
formdefaults.module, line 305
Code
function formdefaults_edit($formid = '', $field = '') {
require_once 'formdefaults.admin.inc';
if (!$field) {
return drupal_get_form('formdefaults_edit_form');
}
elseif ($formid) {
return drupal_get_form('formdefaults_edit_field');
}
else {
drupal_not_found();
}
}