statsd.install in StatsD 7.2
Same filename and directory in other branches
File
statsd.installView source
<?php
/**
* Implementation of hook_uninstall()
*
*/
function statsd_uninstall() {
variable_del('statsd_user_events');
variable_del('statsd_performance_events');
variable_del('statsd_watchdog_events');
variable_del('statsd_watchdog_level');
}
// Cannot rely on autoloader because of early watchdogs.
if (!class_exists('StatsD', FALSE)) {
require_once dirname(__FILE__) . '/includes/statsd.inc';
}
/**
* Implements hook_uninstall().
*/
function statsd_uninstall() {
// Remove class-related variables.
$names = array_keys(StatsD::getDefaultProperties());
foreach ($names as $name) {
variable_del("statsd_{$name}");
}
// Remove module variables.
variable_del('statsd_user_events');
variable_del('statsd_performance_events');
variable_del('statsd_watchdog_events');
variable_del('statsd_watchdog_level');
}
Functions
Name | Description |
---|---|
statsd_uninstall | Implementation of hook_uninstall() |