You are here

function custom_formatters_fieldgroup_view in Custom Formatters 6

Implements hook_fieldgroup_view().

File

includes/fieldgroup.inc, line 56
Fieldgroup module integration.

Code

function custom_formatters_fieldgroup_view(&$node, &$element, $group, $context) {
  if (function_exists($function = "custom_formatters_fieldgroup_view_{$group['group_type']}")) {
    $function($node, $element, $group, $context);
  }
  $element['#node'] = $node;
}