function icon_schema in Icon API 8
Same name and namespace in other branches
- 7 icon.install \icon_schema()
Implements hook_schema().
File
- ./
icon.install, line 11 - icon.install Install, uninstall, and update functions for icon.module.
Code
function icon_schema() {
$schema['icon_bundle'] = array(
'description' => 'Stores the contents of icon bundles.',
'fields' => array(
'name' => array(
'description' => 'The name of the icon bundle.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
),
'bundle' => array(
'description' => 'The array data belonging to the icon bundle.',
'type' => 'blob',
'serialize' => TRUE,
'size' => 'big',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
'description' => 'The enabled status. (1 = enabled, 0 = disabled) of the icon bundle.',
),
),
'primary key' => array(
'name',
),
);
return $schema;
}