webform_confirm_email.install in Webform Confirm Email Address 6.2
Same filename and directory in other branches
webform_confirm_email installation file
File
webform_confirm_email.installView source
<?php
/**
* @file
* webform_confirm_email installation file
*/
/**
* Implementation of hook_install().
*/
function webform_confirm_email_install() {
list($ok) = drupal_install_schema('webform_confirm_email');
if ($ok) {
drupal_set_message(st('Thank you for installing Webform confirm email address. You\'ll find the only setting in the Advanced options of an email component of a Webform.'));
}
}
/**
* Implementation of hook_uninstall().
*/
function webform_confirm_email_uninstall() {
drupal_uninstall_schema('webform_confirm_email');
variable_del('webform_confirm_email_required');
}
/**
* Implementation of hook_schema().
*/
function webform_confirm_email_schema() {
$schema = array();
$schema['webform_confirm_email'] = array(
'description' => 'Table for storing {webform_submissions} waiting for email address confirmation.',
'fields' => array(
'sid' => array(
'type' => 'int',
'description' => '{webform_submissions}.sid submission ID',
'unsigned' => TRUE,
'not null' => TRUE,
),
'hmac' => array(
'type' => 'varchar',
'description' => 'Encrypted signature',
'not null' => TRUE,
'length' => 255,
),
'message' => array(
'type' => 'varchar',
'description' => 'Serialized message array',
'not null' => TRUE,
'serialize' => TRUE,
'length' => 65535,
),
'submitted' => array(
'type' => 'datetime',
'description' => 'Submission date and time, converted from {webform_submissions}.submitted timestamp ',
'not null' => TRUE,
),
),
'primary key' => array(
'sid',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
webform_confirm_email_install | Implementation of hook_install(). |
webform_confirm_email_schema | Implementation of hook_schema(). |
webform_confirm_email_uninstall | Implementation of hook_uninstall(). |