function _webform_confirm_email_add_column_to_webform_submissions in Webform Confirm Email Address 7
Same name and namespace in other branches
- 7.2 webform_confirm_email.install \_webform_confirm_email_add_column_to_webform_submissions()
helper function to add column to webform_submissions table
2 calls to _webform_confirm_email_add_column_to_webform_submissions()
- webform_confirm_email_install in ./
webform_confirm_email.install - Implements hook_install().
- webform_confirm_email_update_7103 in ./
webform_confirm_email.install - Add database field confirmed to webform_submissions table.
File
- ./
webform_confirm_email.install, line 150
Code
function _webform_confirm_email_add_column_to_webform_submissions() {
if (db_table_exists('webform_submissions') && !db_field_exists('webform_submissions', 'confirmed')) {
db_add_field('webform_submissions', 'confirmed', array(
'description' => 'True if the email address for this submission was already confirmed.',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
));
}
}