function statistics_advanced_uninstall in Statistics Advanced 6
Same name and namespace in other branches
- 5 statistics_advanced.install \statistics_advanced_uninstall()
Implementation of hook_uninstall().
File
- ./
statistics_advanced.install, line 25 - Install and uninstall schema and functions for the statistics_advanced module.
Code
function statistics_advanced_uninstall() {
// Remove module variables
drupal_load('module', 'statistics_advanced');
$variables = array_keys(statistics_advanced_variables());
foreach ($variables as $variable) {
variable_del($variable);
}
// Remove index created on accesslog table
$ret = array();
db_drop_index($ret, 'accesslog', 'accesslog_path_sid');
db_drop_index($ret, 'accesslog', 'accesslog_uid_sid');
}