function googleanalytics_update_1 in Google Analytics 6.2
Same name and namespace in other branches
- 5 googleanalytics.install \googleanalytics_update_1()
- 6.4 googleanalytics.install \googleanalytics_update_1()
- 6 googleanalytics.install \googleanalytics_update_1()
- 6.3 googleanalytics.install \googleanalytics_update_1()
File
- ./
googleanalytics.install, line 76 - Installation file for Google Analytics module.
Code
function googleanalytics_update_1() {
$ret = array();
$result = db_query("SELECT * FROM {role}");
while ($role = db_fetch_object($result)) {
// can't use empty spaces in varname
$role_varname = str_replace(' ', '_', $role->name);
variable_set('googleanalytics_track_' . $role->rid, !variable_get("googleanalytics_track_{$role_varname}", FALSE));
variable_del("googleanalytics_track_{$role_varname}");
}
variable_set('googleanalytics_track__user1', FALSE);
return $ret;
}