You are here

function formdefaults_edit in Form Defaults 6.2

Same name and namespace in other branches
  1. 5.3 formdefaults.module \formdefaults_edit()
  2. 5 formdefaults.module \formdefaults_edit()
  3. 5.2 formdefaults.module \formdefaults_edit()
  4. 6 formdefaults.module \formdefaults_edit()
  5. 7 formdefaults.module \formdefaults_edit()
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 288

Code

function formdefaults_edit($formid = '', $field = '') {
  if (!$field) {
    return drupal_get_form('formdefaults_edit_form');
  }
  elseif ($formid) {
    return drupal_get_form('formdefaults_edit_field');
  }
  else {
    drupal_not_found();
  }
}