webform_attributes.install in Webform Attributes 7.2
Same filename and directory in other branches
Webform Attributes module schema hooks.
File
webform_attributes.installView source
<?php
/**
* @file
* Webform Attributes module schema hooks.
*/
/**
* Implements hook_schema().
*/
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;
}
Functions
Name![]() |
Description |
---|---|
webform_attributes_schema | Implements hook_schema(). |