function field_group_pre_render_bootstrap_fieldgroup_nav in Bootstrap fieldgroup 7
Implements field_group_pre_render_<format-type>. Format type: Bootstrap nav tabs/pills.
File
- ./
bootstrap_fieldgroup.module, line 316 - Module file for the bootstrap_fieldgroup module.
Code
function field_group_pre_render_bootstrap_fieldgroup_nav(&$element, $group, &$form) {
$element += array(
'#type' => 'bootstrap_fieldgroup_nav',
'#theme' => 'bootstrap_fieldgroup_nav',
'#description' => $group->description,
'#parents' => array(
$group->parent_name,
),
'#attached' => array(
'js' => array(
drupal_get_path('module', 'bootstrap_fieldgroup') . '/bootstrap_fieldgroup.js',
),
),
);
}