You are here

function piwik_update_6001 in Piwik Web Analytics 6

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

Upgrade custom javascript settings.

File

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

Code

function piwik_update_6001() {
  $ret = array();
  variable_set('piwik_codesnippet_before', variable_get('piwik_codesnippet', ''));
  variable_del('piwik_codesnippet');
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Upgraded custom javascript codesnippet setting.',
  );
  return $ret;
}