You are here

function webform_scheduler_update_7001 in Webform Scheduler 7

Add a column for showing (and disabling) or hiding the webform.

File

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

Code

function webform_scheduler_update_7001() {
  if (!db_field_exists('webform_scheduler', 'show_or_hide')) {
    db_add_field('webform_scheduler', 'show_or_hide', array(
      'description' => 'Show (and disable) or hide the webform.',
      'type' => 'int',
      'size' => 'tiny',
      'unsigned' => TRUE,
      'default' => 0,
      'not null' => TRUE,
    ));
  }
}