You are here

function field_group_pre_render_html5 in Field Group 7

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

Implements field_group_pre_render_<format-type>. Format type: HTML5.

Parameters

$element The field group form element.:

$group The Field group object prepared for pre_render.:

$form The root element or form.:

File

./field_group.module, line 808
Fieldgroup module.

Code

function field_group_pre_render_html5(&$element, $group, &$form) {
  $id = !empty($element['#id']) ? ' id="' . $element['#id'] . '"' : '';
  $class = !empty($group->classes) ? ' class="' . $group->classes . '"' : '';
  $element += array(
    '#type' => 'markup',
    '#prefix' => '<' . $group->format_settings['instance_settings']['wrapper'] . $id . $class . '>',
    '#suffix' => '</' . $group->format_settings['instance_settings']['wrapper'] . '>',
  );
}