function googleanalytics_update_6001 in Google Analytics 7.2
Same name and namespace in other branches
- 5 googleanalytics.install \googleanalytics_update_6001()
- 6.4 googleanalytics.install \googleanalytics_update_6001()
- 6 googleanalytics.install \googleanalytics_update_6001()
- 6.2 googleanalytics.install \googleanalytics_update_6001()
- 6.3 googleanalytics.install \googleanalytics_update_6001()
- 7 googleanalytics.install \googleanalytics_update_6001()
File
- ./
googleanalytics.install, line 103 - Installation file for Google Analytics module.
Code
function googleanalytics_update_6001() {
variable_set('googleanalytics_visibility', 0);
// Remove tracking from all administrative pages, see:
// https://drupal.org/node/34970.
$pages = array(
'admin*',
'user*',
'node/add*',
'node/*/*',
);
variable_set('googleanalytics_pages', implode("\n", $pages));
return t('Added page tracking to every page except the listed pages: @pages.', array(
'@pages' => implode(', ', $pages),
));
}