You are here

function formdefaults_schema in Form Defaults 6.2

Same name and namespace in other branches
  1. 8 formdefaults.install \formdefaults_schema()
  2. 6 formdefaults.install \formdefaults_schema()
  3. 7 formdefaults.install \formdefaults_schema()

Implementation of hook_schema

Return value

array Schema definition array.

File

./formdefaults.install, line 22

Code

function formdefaults_schema() {
  $schema['formdefaults_forms'] = array(
    'fields' => array(
      'formid' => array(
        'type' => 'varchar',
        'length' => 255,
      ),
      'formdata' => array(
        'type' => 'text',
      ),
    ),
    'primary key' => array(
      'formid',
    ),
  );
  return $schema;
}