function print_mail_schema in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 6 print_mail/print_mail.install \print_mail_schema()
- 7 print_mail/print_mail.install \print_mail_schema()
- 5.x print_mail/print_mail.install \print_mail_schema()
Implements hook_schema().
File
- print_mail/
print_mail.install, line 95 - Install, update and uninstall functions for the print_mail module.
Code
function print_mail_schema() {
$schema['print_mail_node_conf'] = array(
'description' => 'Send by email node-specific configuration settings',
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The {node}.nid of the node.',
),
'link' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
'description' => 'Show link',
),
'comments' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
'description' => 'Show link in individual comments',
),
'url_list' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
'description' => 'Show Printer-friendly URLs list',
),
),
'primary key' => array(
'nid',
),
);
$schema['print_mail_page_counter'] = array(
'description' => 'Send by email version access counter',
'fields' => array(
'path' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Page path',
),
'totalcount' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
'description' => 'Number of page accesses',
),
'timestamp' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Last access',
),
'sentcount' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
'description' => 'Number of sent emails',
),
'sent_timestamp' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Last email sent',
),
),
'primary key' => array(
'path',
),
);
return $schema;
}