You are here

function rules_forms_schema in Rules Forms Support 7.2

Implements hook_schema().

File

./rules_forms.install, line 11
Installation function for Rules Forms module.

Code

function rules_forms_schema() {
  $schema = array();
  $schema['rules_forms'] = array(
    'description' => 'Rules Forms active forms.',
    'fields' => array(
      'form_id' => array(
        'description' => 'The form ID of the active form.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'label' => array(
        'description' => 'The human-readable label of the form.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'properties' => array(
        'description' => 'Serialized information about form properties.',
        'type' => 'text',
        'size' => 'medium',
      ),
      'rebuild' => array(
        'description' => 'Indicates whether form element property information needs to be rebuilt.',
        'type' => 'int',
        'size' => 'tiny',
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'form_id',
    ),
    'unique keys' => array(
      'form_id' => array(
        'form_id',
      ),
    ),
  );
  return $schema;
}