statistics_advanced.install in Statistics Advanced 5
Same filename and directory in other branches
File
statistics_advanced.installView source
<?php
/**
* Implementation of hook_install().
*/
function statistics_advanced_install() {
$weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'statistics'"));
db_query("UPDATE {system} SET weight = %d WHERE name = 'statistics_advanced'", $weight + 1);
}
/**
* Implementation of hook_uninstall().
*/
function statistics_advanced_uninstall() {
variable_del('statistics_advanced_ignore_repeat_views');
variable_del('statistics_advanced_ignore_user_roles');
}
Functions
Name | Description |
---|---|
statistics_advanced_install | Implementation of hook_install(). |
statistics_advanced_uninstall | Implementation of hook_uninstall(). |