Lines Matching refs:selected
632 * @param string|int $selected default selected value, string or index number
641 function form_makeMenuField($name, $values, $selected = '', $label = null, $id = '', $class = '', $… argument
649 $options[] = array($val, $text, (!is_null($selected) && $val == $selected));
652 if (is_integer($selected)) $selected = $values[$selected];
657 $options[] = array($val, $text, $val === $selected);
678 * @param array|string $selected value or array of values of the items that need to be selected
687 function form_makeListboxField($name, $values, $selected = '', $label = null, $id = '', $class = ''… argument
692 if (is_null($selected) || $selected == '') {
693 $selected = array();
694 } elseif (!is_array($selected)) {
695 $selected = array($selected);
700 $options[] = array($val, $text, in_array($val, $selected));
710 $options[] = array($val, $text, in_array($val, $selected), $disabled);
1084 $selected = false;
1093 if (!empty($select) && !$selected) {
1095 $selected = true;