function theme_field_formatter_field_test_multiple in SimpleTest 7
Theme function for 'field_test_multiple' formatter.
File
- tests/
field_test.module, line 607
Code
function theme_field_formatter_field_test_multiple($variables) {
$element = $variables['element'];
$settings = $element['#settings'];
$items = array();
foreach (element_children($element) as $key) {
$items[$key] = $key . ':' . $element[$key]['#item']['value'];
}
$output = implode('|', $items);
return $settings['test_formatter_setting_multiple'] . '|' . $output;
}