function ife_schema in Inline Form Errors 6
Same name and namespace in other branches
- 6.2 ife.install \ife_schema()
- 7.2 ife.install \ife_schema()
- 7 ife.install \ife_schema()
Implementation of hook_schema().
File
- ./
ife.install, line 13 - Install file
Code
function ife_schema() {
$schema = array();
// Table for positions and types of the challenges.
$schema['ife'] = array(
'description' => 'This table describes which form should be used with field messages and which field types should be converted.',
'fields' => array(
'form_id' => array(
'description' => 'The form_id of the form to use with field messages.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'field_types' => array(
'description' => 'Serialized array of the field types to convert.',
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
),
'status' => array(
'description' => 'Enabled boolean. 1 (True), 0 (False)',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'display' => array(
'description' => 'Display type',
'type' => 'int',
'not null' => TRUE,
'default' => -1,
),
),
'primary key' => array(
'form_id',
),
);
return $schema;
}