Commit 47b024ca authored by hass's avatar hass
Browse files

Name the user setting checkbox always "Enable user tracking". Not sure what I've tested there...

parent 713cbcee
......@@ -220,19 +220,17 @@ function googleanalytics_user($type, $edit, &$account, $category = NULL) {
switch ($custom) {
case 1:
$title = t('Disable user tracking');
$description = t('Users are tracked by default, but you are able to opt out.');
break;
case 2:
$title = t('Enable user tracking');
$description = t('Users are <em>not</em> tracked by default, but you are able to opt in.');
break;
}
$form['googleanalytics']['custom'] = array(
'#type' => 'checkbox',
'#title' => $title,
'#title' => t('Enable user tracking'),
'#description' => $description,
'#default_value' => isset($account->googleanalytics['custom']) ? $account->googleanalytics['custom'] : ($custom == 1)
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment