Helper module for the List module tests.
<?php /** * @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; } /** * An entity-bound allowed values callback. */ function list_test_dynamic_values_callback($field, $instance, $entity_type, $entity, &$cacheable) { return state_get('list_test_dynamic_values', array()); }