| 1 |
<?php
|
| 2 |
// $Id: piwik.install,v 1.1.2.2 2008/05/12 15:41:42 hass Exp $
|
| 3 |
|
| 4 |
function piwik_install() {
|
| 5 |
// Remove tracking from all administrative pages, see http://drupal.org/node/34970.
|
| 6 |
variable_set('piwik_visibility', 0);
|
| 7 |
$pages = array(
|
| 8 |
'admin*',
|
| 9 |
'user*',
|
| 10 |
'node/add*',
|
| 11 |
'node/*/*',
|
| 12 |
);
|
| 13 |
variable_set('piwik_pages', implode("\n", $pages));
|
| 14 |
}
|
| 15 |
|
| 16 |
function piwik_uninstall() {
|
| 17 |
variable_del('piwik_idsite');
|
| 18 |
variable_del('piwik_url_http');
|
| 19 |
variable_del('piwik_url_https');
|
| 20 |
variable_del('piwik_codesnippet');
|
| 21 |
//variable_del('piwik_segmentation');
|
| 22 |
variable_del('piwik_cache');
|
| 23 |
variable_del('piwik_last_cache');
|
| 24 |
//variable_del('piwik_site_search');
|
| 25 |
variable_del('piwik_js_scope');
|
| 26 |
variable_del('piwik_custom');
|
| 27 |
variable_del('piwik_roles');
|
| 28 |
variable_del('piwik_visibility');
|
| 29 |
variable_del('piwik_pages');
|
| 30 |
}
|