function custom_formatters_schema in Custom Formatters 7.2
Same name and namespace in other branches
- 6 custom_formatters.install \custom_formatters_schema()
Implements hook_schema().
File
- ./
custom_formatters.install, line 11 - Install, update and uninstall functions for the Custom Formatters module.
Code
function custom_formatters_schema() {
$schema['formatters'] = array(
'export' => array(
'key' => 'name',
'key name' => 'Name',
'primary key' => 'name',
'identifier' => 'formatter',
'default hook' => 'custom_formatters_defaults',
'api' => array(
'owner' => 'custom_formatters',
'api' => 'custom_formatters',
'minimum_version' => 2,
'current_version' => 2,
),
),
'fields' => array(
'name' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'label' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => '',
),
'mode' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'field_types' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
),
'code' => array(
'type' => 'blob',
),
'fapi' => array(
'type' => 'blob',
),
),
'primary key' => array(
'name',
),
);
return $schema;
}