5 * Helper module for the List module tests.
9 * Allowed values callback.
11 function list_test_allowed_values_callback($field) {
18 2 => 'Some <script>dangerous</script> & unescaped <strong>markup</strong>',
26 * An entity-bound allowed values callback.
28 function list_test_dynamic_values_callback($field, $instance, $entity_type, $entity, &$cacheable) {
30 // We need the values of the entity as keys.
31 return drupal_map_assoc(array_merge(array($entity->ftlabel), entity_extract_ids($entity_type, $entity)));