function google_tag_fieldset in GoogleTagManager 7
Same name and namespace in other branches
- 7.2 includes/form/container.inc \google_tag_fieldset()
- 7.2 includes/form/settings.inc \google_tag_fieldset()
Fieldset builder for the module settings form.
1 call to google_tag_fieldset()
- google_tag_settings_form in includes/
admin.inc - Form constructor for the module settings form.
File
- includes/
admin.inc, line 56 - Contains the administrative page and form callbacks.
Code
function google_tag_fieldset($group, $items) {
// Gather data.
$function = "_google_tag_variable_info_{$group}";
$variables = $function(array());
$items += array(
'description' => '',
'collapse' => TRUE,
);
// Build form elements.
$fieldset = array(
'#type' => 'fieldset',
'#title' => $items['title'],
'#description' => $items['description'],
'#collapsible' => $items['collapse'],
'#collapsed' => $items['collapse'],
'#tree' => FALSE,
);
$fieldset += google_tag_form_elements($variables);
return $fieldset;
}