function statistics_advanced_install in Statistics Advanced 6
Same name and namespace in other branches
- 5 statistics_advanced.install \statistics_advanced_install()
Implementation of hook_install().
File
- ./
statistics_advanced.install, line 11 - Install and uninstall schema and functions for the statistics_advanced module.
Code
function statistics_advanced_install() {
// Set this module's weight to right below statistics so we can run hook_exit
// after statistics_exit has been called.
db_query("UPDATE {system} SET weight = 1 WHERE type = 'module' AND name = 'statistics_advanced'");
// Add an index to optimize accesslog table for searching
$ret = array();
db_add_index($ret, 'accesslog', 'accesslog_path_sid', array(
'path',
'sid',
));
db_add_index($ret, 'accesslog', 'accesslog_uid_sid', array(
'uid',
'sid',
));
}