function signature_forum_schema in Signatures for Forums 6
Same name and namespace in other branches
- 7 signature_forum.install \signature_forum_schema()
Implementation of hook_schema().
File
- ./
signature_forum.install, line 11 - Installs, updates and uninstalls signature_forum module.
Code
function signature_forum_schema() {
$schema['users_signature'] = array(
'fields' => array(
'uid' => array(
'description' => 'The {users}.uid this signature belongs to.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'signature' => array(
'description' => 'The signature text.',
'type' => 'text',
'not null' => FALSE,
'default' => NULL,
),
'status' => array(
'type' => 'int',
'description' => 'A boolean indicator for whether or not a signature should be displayed by default: 1 means display, 0 means not displayed.',
'size' => 'tiny',
'not null' => FALSE,
'default' => 0,
),
),
'primary key' => array(
'uid',
),
);
$schema['signature_post'] = array(
'fields' => array(
'delta' => array(
'type' => 'int',
'unsigned' => TRUE,
'description' => 'The id of the attached object. nid for nodes and cid for comments.',
'not null' => TRUE,
'disp-width' => '11',
),
'type' => array(
'description' => 'The type of comment to attach settings.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'status' => array(
'type' => 'int',
'description' => 'A boolean indicator for whether or not a signature should be displayed: 1 means display, 0 means not displayed.',
'size' => 'tiny',
'not null' => TRUE,
'disp-width' => '11',
),
),
'primary key' => array(
'delta',
'type',
),
);
return $schema;
}