function custom_formatters_fieldgroup_view_multigroup in Custom Formatters 6
File
- includes/
content_multigroup.inc, line 47 - Provides Custom Formatters integration with the Content Multigroup module.
Code
function custom_formatters_fieldgroup_view_multigroup(&$node, &$element, $group, $context) {
$subgroup_settings = isset($group['settings']['multigroup']['subgroup']) ? $group['settings']['multigroup']['subgroup'] : array();
$subgroup_format = isset($subgroup_settings[$context]['format']) ? $subgroup_settings[$context]['format'] : 'fieldset';
if (strpos($subgroup_format, 'custom_formatters_') === 0) {
$element['#node'] = $node;
$element['#theme'] = 'custom_formatters_content_multigroup';
$element['#formatter'] = $subgroup_format;
}
}