includes/htmlform/fields/HTMLSelectField.php 1 location
|
@@ 16-20 (lines=5) @@
|
| 13 |
|
|
| 14 |
|
$validOptions = HTMLFormField::flattenOptions( $this->getOptions() ); |
| 15 |
|
|
| 16 |
|
if ( in_array( strval( $value ), $validOptions, true ) ) { |
| 17 |
|
return true; |
| 18 |
|
} else { |
| 19 |
|
return $this->msg( 'htmlform-select-badoption' )->parse(); |
| 20 |
|
} |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
function getInputHTML( $value ) { |
includes/htmlform/fields/HTMLRadioField.php 1 location
|
@@ 35-39 (lines=5) @@
|
| 32 |
|
|
| 33 |
|
$validOptions = HTMLFormField::flattenOptions( $this->getOptions() ); |
| 34 |
|
|
| 35 |
|
if ( in_array( strval( $value ), $validOptions, true ) ) { |
| 36 |
|
return true; |
| 37 |
|
} else { |
| 38 |
|
return $this->msg( 'htmlform-select-badoption' )->parse(); |
| 39 |
|
} |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** |