function theme_custom_formatters_fieldgroup in Custom Formatters 6
File
- includes/
fieldgroup.inc, line 69 - Fieldgroup module integration.
Code
function theme_custom_formatters_fieldgroup($element) {
$output = '';
$element['#item'] = array();
foreach (element_children($element) as $field) {
$element['#item'][$field] = array();
foreach (element_children($element[$field]['field']['items']) as $item) {
$element['#item'][$field][$element[$field]['field']['items'][$item]['#item']['#delta']] = $element[$field]['field']['items'][$item]['#item'];
$element['#item'][$field][$element[$field]['field']['items'][$item]['#item']['#delta']]['view'] = theme($element[$field]['field']['items'][$item]['#theme'], $element[$field]['field']['items'][$item]);
unset($element['#item'][$field][$element[$field]['field']['items'][$item]['#item']['#delta']]['#delta']);
}
$element['#item'][$field]['view'] = drupal_render($element[$field]);
}
return theme('custom_formatters_formatter', $element);
}