function ga_stats_auth_settings in Google Analytics Statistics 7
Same name and namespace in other branches
- 7.2 ga_stats.admin.inc \ga_stats_auth_settings()
Callback for GA Stats authentication form.
1 string reference to 'ga_stats_auth_settings'
- ga_stats_menu in ./
ga_stats.module - Implements hook_menu().
File
- ./
ga_stats.admin.inc, line 6
Code
function ga_stats_auth_settings() {
$form = array();
$form['ga_stats_login'] = array(
'#type' => 'fieldset',
'#title' => t('Google Analytics Login Information'),
'#collapsible' => TRUE,
'#collapsed' => ga_stats_is_ready(),
);
$form['ga_stats_login']['ga_stats_email'] = array(
'#type' => 'textfield',
'#title' => t('Account Email'),
'#description' => t('The email account you use to log in to Google Analytics.'),
'#default_value' => variable_get('ga_stats_email', ''),
);
$form['ga_stats_login']['ga_stats_password'] = array(
'#type' => 'password',
'#title' => t('Account Password'),
'#description' => t('The password you use to log in to Google Analytics. This is not displayed once set.'),
);
$form['ga_stats_login']['ga_stats_acct_type'] = array(
'#type' => 'select',
'#title' => t('Account Type'),
'#description' => t('The account type you use to log in to Google Analytics.'),
'#options' => array(
'GOOGLE' => t('Google'),
'HOSTED' => t('Hosted'),
),
'#default_value' => variable_get('ga_stats_acct_type', NULL),
);
$form['#validate'][] = 'ga_stats_auth_form_validate';
return system_settings_form($form);
}