| @@ 272-276 (lines=5) @@ | ||
| 269 | case 'select': |
|
| 270 | case 'radio': |
|
| 271 | $options = $this->getVar('field_options'); |
|
| 272 | if (isset($options[$value])) { |
|
| 273 | $value = htmlspecialchars(defined($options[$value]) ? constant($options[$value]) : $options[$value]); |
|
| 274 | } else { |
|
| 275 | $value = ''; |
|
| 276 | } |
|
| 277 | ||
| 278 | return $value; |
|
| 279 | break; |
|
| @@ 287-289 (lines=3) @@ | ||
| 284 | $ret = array(); |
|
| 285 | if (count($options) > 0) { |
|
| 286 | foreach (array_keys($options) as $key) { |
|
| 287 | if (in_array($key, $value)) { |
|
| 288 | $ret[$key] = htmlspecialchars(defined($options[$key]) ? constant($options[$key]) : $options[$key]); |
|
| 289 | } |
|
| 290 | } |
|
| 291 | } |
|
| 292 | ||