You are here

function webform_scheduler_update_7004 in Webform Scheduler 7

Add column for custom message.

File

./webform_scheduler.install, line 133
Webform Scheduler module install/schema hooks.

Code

function webform_scheduler_update_7004() {
  if (!db_field_exists('webform_scheduler', 'msg_before')) {
    db_add_field('webform_scheduler', 'msg_before', array(
      'description' => 'Message to display before the webform is scheduled to begin.',
      'type' => 'varchar',
      'length' => '128',
      'not null' => false,
      'default' => null,
    ));
  }
  if (!db_field_exists('webform_scheduler', 'msg_after')) {
    db_add_field('webform_scheduler', 'msg_after', array(
      'description' => 'Message to display after the webform is scheduled to end.',
      'type' => 'varchar',
      'length' => '128',
      'not null' => false,
      'default' => null,
    ));
  }
}