function field_conditional_state_schema in Field Conditional States 7
Same name and namespace in other branches
- 7.2 field_conditional_state.install \field_conditional_state_schema()
Implements hook_schema().
File
- ./
field_conditional_state.install, line 19 - Install function for the field_conditional_state module.
Code
function field_conditional_state_schema() {
$schema['field_conditional_state'] = array(
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'The internal identifier condition.',
),
'field_name' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => 'The target field name.',
),
'control_field' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => 'The control field name.',
),
'state' => array(
'type' => 'varchar',
'length' => '15',
'not null' => TRUE,
'description' => 'The state type.',
),
'bundle' => array(
'type' => 'varchar',
'length' => '127',
'not null' => TRUE,
'description' => 'The bundle type.',
),
'trigger_values' => array(
'type' => 'text',
'not null' => TRUE,
'description' => 'The trigger values.',
),
'condition_type' => array(
'type' => 'varchar',
'length' => '3',
'not null' => TRUE,
'description' => 'The matching type.',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}