function values_schema in Values 6
Same name and namespace in other branches
- 7 values.install \values_schema()
Implementation of hook_schema().
File
- ./
values.install, line 25 - Install file for Values module.
Code
function values_schema() {
$schema['values_list'] = array(
'description' => t('List of configured value lists.'),
'export' => array(
'key' => 'name',
'identifier' => 'values',
'default hook' => 'default_values_values',
'api' => array(
'owner' => 'values',
'api' => 'default_values_list',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'name' => array(
'description' => t('Unique ID for value lists.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'description' => t('A human-readable name of a value list'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'description' => t('Configured list of values.'),
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
),
),
'unique keys' => array(
'name' => array(
'name',
),
),
'primary key' => array(
'name',
),
);
return $schema;
}