function textformatter_example_field_create_list in Text list formatter 8.2
Same name and namespace in other branches
- 7 textformatter.api.php \textformatter_example_field_create_list()
Sample callback implementation.
See also
textformatter_default_field_create_list()
1 string reference to 'textformatter_example_field_create_list'
- hook_textformatter_field_info in ./
textformatter.api.php - hook_textformatter_field_list_info().
File
- ./
textformatter.api.php, line 40 - Describes hooks provided by the textformatter module.
Code
function textformatter_example_field_create_list($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$list_items = array();
foreach ($items as $delta => $item) {
$list_items[$delta] = check_plain($item['value']);
}
return $list_items;
}