function webform_anonymous_schema in Webform Anonymous 6
Same name and namespace in other branches
- 7 webform_anonymous.install \webform_anonymous_schema()
Implements hook_schema().
File
- ./
webform_anonymous.install, line 26 - Webform Anonymous module install/schema hooks.
Code
function webform_anonymous_schema() {
$schema = array();
$schema['webform_anonymous'] = array(
'description' => 'Table for storing the anonymous status for webform nodes.',
'fields' => array(
'nid' => array(
'description' => 'The node identifier of a webform.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'anonymous' => array(
'description' => 'The anonymous status.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'locked' => array(
'description' => 'Whether the anonymity of the results of this webform can or cannot be altered.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'locked_uid' => array(
'description' => 'The user ID of the user that locked the results of this webform in an anonymous state.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}