You are here

function variable_module_form in Variable 6

Same name and namespace in other branches
  1. 7.2 variable.module \variable_module_form()
  2. 7 variable.module \variable_module_form()

Form for module variables

File

./variable.module, line 68
Variable API module

Code

function variable_module_form(&$form_state, $module) {
  $form = variable_edit_form($form_state, array_keys(variable_list_module($module)));

  // Pass on the values on the form for further reference.
  $form['#variable_module_form'] = $module;
  return $form;
}