function custom_formatters_schema in Custom Formatters 6
Same name and namespace in other branches
- 7.2 custom_formatters.install \custom_formatters_schema()
Implements hook_schema().
File
- ./
custom_formatters.install, line 10 - Install, update and uninstall functions for the Custom Formatters module.
Code
function custom_formatters_schema() {
$schema['formatters'] = array(
'fields' => array(
'name' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'label' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'field_types' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'serialize' => TRUE,
),
'multiple' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'description' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
),
'mode' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'code' => array(
'type' => 'blob',
),
'status' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
),
'primary key' => array(
'name',
),
);
return $schema;
}