function honeypot_schema in Honeypot 6
Same name and namespace in other branches
- 8 honeypot.install \honeypot_schema()
- 7 honeypot.install \honeypot_schema()
- 2.0.x honeypot.install \honeypot_schema()
Implementation of hook_schema().
File
- ./
honeypot.install, line 39 - Install, update and uninstall functions for the Honeypot module.
Code
function honeypot_schema() {
$schema['honeypot_user'] = array(
'description' => 'Table that stores failed attempts to submit a form.',
'fields' => array(
'uid' => array(
'description' => 'Foreign key to {users}.uid; uniquely identifies a Drupal user to whom this ACL data applies.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'timestamp' => array(
'description' => 'Date/time when the form submission failed, as Unix timestamp.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'indexes' => array(
'uid' => array(
'uid',
),
'timestamp' => array(
'timestamp',
),
),
);
return $schema;
}