function browscap_schema in Browscap 7.2
Same name and namespace in other branches
- 8.3 browscap.install \browscap_schema()
- 8 browscap.install \browscap_schema()
- 6.2 browscap.install \browscap_schema()
- 6 browscap.install \browscap_schema()
- 7 browscap.install \browscap_schema()
Implements hook_schema().
File
- ./
browscap.install, line 10 - Install, update and uninstall functions for the Browscap module.
Code
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;
}