more module updates

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 18:13:58 +02:00
parent 55b23a2cec
commit 2121a356b3
51 changed files with 1638 additions and 851 deletions

View File

@@ -5,7 +5,7 @@
*/
/**
* Implements hook_install().
* Implements hook_schema().
*/
function browscap_schema() {
$schema['browscap'] = array(
@@ -32,10 +32,10 @@ function browscap_schema() {
* Implements hook_install().
*/
function browscap_install() {
// Update the browscap information
// Update the browscap information.
_browscap_import();
// Record when the browscap information was updated
// Record when the browscap information was updated.
variable_set('browscap_imported', REQUEST_TIME);
}
@@ -48,3 +48,10 @@ function browscap_uninstall() {
variable_del('browscap_enable_automatic_updates');
variable_del('browscap_automatic_updates_timer');
}
/**
* Drop the unused Browscap 1.x statistics table.
*/
function browscap_update_7200() {
db_drop_table('browscap_statistics');
}