public function GTMContainerExport::default_container in GoogleTagManager 7.2
Returns associative array of default values keyed by variable name.
Return value
array Associative array of default values keyed by variable name.
1 call to GTMContainerExport::default_container()
- GTMContainerExport::edit_form in plugins/
export_ui/ container.php - Provide the actual editing form.
File
- plugins/
export_ui/ container.php, line 328
Class
- GTMContainerExport
- Defines the container list builder.
Code
public function default_container() {
static $container;
if (!isset($container)) {
// The 'after' keys are added by ctools.
$before = array(
'name' => '',
'label' => '',
'status' => TRUE,
);
$after = array(
'type' => 'Normal',
'export_type' => NULL,
);
$variables = $before + $this
->variables_get() + $after;
$container = (object) $variables;
}
return $container;
}