function google_analytics_et_override_event_tracking in Google Analytics Event Tracking 6
Same name and namespace in other branches
- 7 google_analytics_et.module \google_analytics_et_override_event_tracking()
Override the hooked event tracking. Do not load hooks.
This function can be used to toggle the override status (by not passing a value) or this function can be used to set the override status outright by passing TRUE or FALSE.
Parameters
bool $status: This can be left to the default value of NULL if one just wishes to toggle the override status. If a valid TRUE or FALSE value is passed then the override status is changed to that.
1 call to google_analytics_et_override_event_tracking()
- drush_google_analytics_et_admin_gaet_override_et in drush_commands/
google_analytics_et_admin.drush.inc - Toggles the override status, TRUE|FALSE
File
- ./
google_analytics_et.module, line 101 - Google Analytics Event Tracking Module.
Code
function google_analytics_et_override_event_tracking($status = NULL) {
if ($status == NULL) {
$new_status = variable_get('google_analytics_et_selectors_override', NULL) ? FALSE : TRUE;
variable_set('google_analytics_et_selectors_override', $new_status);
}
elseif (_google_analytics_et_override_event_tracking_validate($status)) {
variable_set('google_analytics_et_selectors_override', $status);
}
}