You are here

function variable_group_form in Variable 6

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

Form for group variables

File

./variable.module, line 78
Variable API module

Code

function variable_group_form(&$form_state, $group) {
  $form = variable_edit_form($form_state, array_keys(variable_list_group($group)));

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