You are here

function getclicky_install in Clicky - Web Analytics in Real Time 5

Same name and namespace in other branches
  1. 6 getclicky.install \getclicky_install()

File

./getclicky.install, line 4

Code

function getclicky_install() {
  $result = db_query('SELECT * FROM {role} ORDER BY name');
  while ($role = db_fetch_object($result)) {
    $gc_role = 'getclicky_track_' . $role->rid;

    // check if variable is not already set from a previous install
    if (strpos(variable_get($gc_role, 'new'), 'new') !== FALSE) {
      variable_set($gc_role, FALSE);
    }
  }
}