function google_tag_fieldset in GoogleTagManager 7.2
Same name in this branch
- 7.2 includes/form/container.inc \google_tag_fieldset()
- 7.2 includes/form/settings.inc \google_tag_fieldset()
Same name and namespace in other branches
- 7 includes/admin.inc \google_tag_fieldset()
Fieldset builder for the module settings form.
2 calls to google_tag_fieldset()
- google_tag_container_form in includes/
form/ container.inc - Form constructor for the container form.
- google_tag_settings_form in includes/
form/ settings.inc - Form constructor for the container form.
File
- includes/
form/ container.inc, line 71 - Contains the container form callbacks.
Code
function google_tag_fieldset($group, array $items, $container) {
// Gather data.
$function = "_google_tag_variable_info_{$group}";
$variables = $function(array());
$items += array(
'description' => '',
'collapse' => TRUE,
);
// @todo Does google_tag_condition_filter() obviate this gate check?
if (empty($variables)) {
// This handles optional conditions like domain, language, and realm.
return array();
}
// 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, $container);
return $fieldset;
}