You are here

function variable_form_element_options in Variable 6

Same name and namespace in other branches
  1. 7.2 variable.form.inc \variable_form_element_options()
  2. 7 variable.form.inc \variable_form_element_options()

Build options variables

2 string references to 'variable_form_element_options'
variable_variable_type_defaults in ./variable.inc
Implementation of hook_variable_form_defaults()
variable_variable_type_info in ./variable.variable.inc
Implements hook_variable_type_info().

File

./variable.form.inc, line 64
Variable API module. Form library.

Code

function variable_form_element_options($variable) {
  $element = variable_form_element_default($variable);
  $element['#options'] = $variable['options'];
  return $element;
}