1 list_test.module | list_test_allowed_values_callback($field) |
Allowed values callback.
File
- core/
modules/ field/ modules/ list/ tests/ list_test.module, line 10 - Helper module for the List module tests.
Code
function list_test_allowed_values_callback($field) {
$values = array(
'Group 1' => array(
0 => 'Zero',
),
1 => 'One',
'Group 2' => array(
2 => 'Some <script>dangerous</script> & unescaped <strong>markup</strong>',
),
);
return $values;
}