function conditional_fields_schema in Conditional Fields 6.2
Same name and namespace in other branches
- 6 conditional_fields.install \conditional_fields_schema()
- 7.3 conditional_fields.install \conditional_fields_schema()
File
- ./
conditional_fields.install, line 20 - Install, update and uninstall functions for the Conditional Fields module.
Code
function conditional_fields_schema() {
$schema['conditional_fields'] = array(
'fields' => array(
'control_field_name' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'default' => '',
),
'field_name' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'default' => '',
),
'type' => array(
'type' => 'varchar',
'length' => '127',
'not null' => TRUE,
'default' => '',
),
'trigger_values' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
),
),
'primary key' => array(
'control_field_name',
'field_name',
'type',
),
);
return $schema;
}