You are here

function piwik_install in Piwik Web Analytics 6

Same name and namespace in other branches
  1. 5 piwik.install \piwik_install()
  2. 6.2 piwik.install \piwik_install()
  3. 7.2 piwik.install \piwik_install()
  4. 7 piwik.install \piwik_install()

@file Installation file for Piwik - Web analytics module.

File

./piwik.install, line 8
Installation file for Piwik - Web analytics module.

Code

function piwik_install() {

  // Remove tracking from all administrative pages, see http://drupal.org/node/34970.
  variable_set('piwik_visibility', 0);
  $pages = array(
    'admin',
    'admin/*',
    'user/*/*',
    'node/add*',
    'node/*/*',
  );
  variable_set('piwik_pages', implode("\n", $pages));
}