You are here

function conditional_fields_schema in Conditional Fields 6

Same name and namespace in other branches
  1. 6.2 conditional_fields.install \conditional_fields_schema()
  2. 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,
      ),
    ),
  );
  return $schema;
}