summaryrefslogtreecommitdiff
path: root/modules/field/modules/list/tests/list_test.module
blob: 4fb1998eb113eeb9cb3cee6ce0dc775129902eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// $Id$

/**
 * @file
 * Helper module for the List module tests.
 */

/**
 * Allowed values callback.
 */
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;
}