FINAL suepr merge step : added all modules to this super repos
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the Browscap module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function browscap_schema() {
|
||||
$schema['browscap'] = array(
|
||||
'fields' => array(
|
||||
'useragent' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => 255,
|
||||
'not null' => TRUE,
|
||||
'default' => '',
|
||||
),
|
||||
'data' => array(
|
||||
'type' => 'blob',
|
||||
'size' => 'big',
|
||||
),
|
||||
),
|
||||
'primary key' => array('useragent'),
|
||||
);
|
||||
$schema['cache_browscap'] = drupal_get_schema_unprocessed('system', 'cache');
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function browscap_install() {
|
||||
// Update the browscap information
|
||||
_browscap_import();
|
||||
|
||||
// Record when the browscap information was updated
|
||||
variable_set('browscap_imported', REQUEST_TIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uninstall().
|
||||
*/
|
||||
function browscap_uninstall() {
|
||||
variable_del('browscap_imported');
|
||||
variable_del('browscap_version');
|
||||
variable_del('browscap_enable_automatic_updates');
|
||||
variable_del('browscap_automatic_updates_timer');
|
||||
}
|
Reference in New Issue
Block a user