function theme_googleanalytics_admin_custom_var_table in Google Analytics 6.4
Same name and namespace in other branches
- 6.3 googleanalytics.admin.inc \theme_googleanalytics_admin_custom_var_table()
- 7.2 googleanalytics.admin.inc \theme_googleanalytics_admin_custom_var_table()
- 7 googleanalytics.admin.inc \theme_googleanalytics_admin_custom_var_table()
Layout for the custom variables table in the admin settings form.
1 theme call to theme_googleanalytics_admin_custom_var_table()
- googleanalytics_admin_settings_form in ./
googleanalytics.admin.inc - Implementation of hook_admin_settings() for module settings configuration.
File
- ./
googleanalytics.admin.inc, line 556 - Administrative page callbacks for the googleanalytics module.
Code
function theme_googleanalytics_admin_custom_var_table($form) {
$header = array(
array(
'data' => t('Index'),
),
array(
'data' => t('Value'),
),
);
$rows = array();
foreach (element_children($form['indexes']) as $id) {
$rows[] = array(
'data' => array(
drupal_render($form['indexes'][$id]['index']),
drupal_render($form['indexes'][$id]['value']),
),
);
}
$output = theme('table', $header, $rows);
$output .= drupal_render($form['googleanalytics_description']);
if (isset($form['googleanalytics_token_tree'])) {
$output .= drupal_render($form['googleanalytics_token_tree']);
}
return $output;
}