function webform_attributes_schema in Webform Attributes 7
Same name and namespace in other branches
- 7.2 webform_attributes.install \webform_attributes_schema()
Implements hook_schema().
File
- ./
webform_attributes.install, line 11 - Webform Attributes module schema hooks.
Code
function webform_attributes_schema() {
$schema = array();
$schema['webform_attributes'] = array(
'description' => 'Information about form attributes.',
'fields' => array(
'nid' => array(
'description' => 'The node identifier of a webform.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'attributes' => array(
'description' => 'String with values form attributes',
'type' => 'blob',
'size' => 'big',
'not null' => TRUE,
),
'changed' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'webform_attributes_changed' => array(
'changed',
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}