You are here

function field_group_pre_render_prepare in Field Group 7

Same name and namespace in other branches
  1. 7.2 field_group.module \field_group_pre_render_prepare()

Helper function to prepare basic variables needed for most formatters.

Called in field_group_field_group_pre_render(), but can also be called in other implementations of hook_field_group_pre_render().

1 call to field_group_pre_render_prepare()
field_group_field_group_pre_render in ./field_group.module
Implements hook_field_group_pre_render().

File

./field_group.module, line 643
Fieldgroup module.

Code

function field_group_pre_render_prepare(&$group) {
  $classes = _field_group_get_html_classes($group);
  $group->classes = implode(' ', $classes->required);
  $group->description = !empty($group->format_settings['instance_settings']['description']) ? filter_xss_admin(t($group->format_settings['instance_settings']['description'])) : '';
}