function getclicky_install in Clicky - Web Analytics in Real Time 6
Same name and namespace in other branches
- 5 getclicky.install \getclicky_install()
@file GetClicky: Adds the GetClicky tracking system to your website.
File
- ./
getclicky.install, line 8 - GetClicky: Adds the GetClicky tracking system to your website.
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);
}
}
}