You are here

statsd.install in StatsD 7.2

Same filename and directory in other branches
  1. 6 statsd.install
  2. 7 statsd.install

File

statsd.install
View 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

Namesort descending Description
statsd_uninstall Implementation of hook_uninstall()