form_process_weight

function form_process_weight

form_process_weight($element)

Expands a weight element into a select element.

Related topics

File

includes/form.inc, line 4112
Functions for form and batch generation and processing.

Code

function form_process_weight($element) {
  $element['#is_weight'] = TRUE;

  // If the number of options is small enough, use a select field.
  $max_elements = variable_get('drup