You are here

function simplenews_scheduler_update_7000 in Simplenews Scheduler 7

Add the title field to the scheduler table.

File

./simplenews_scheduler.install, line 147
Install and uninstall functions for the Simplenews Scheduler module.

Code

function simplenews_scheduler_update_7000() {
  if (!db_field_exists('simplenews_scheduler', 'title')) {
    $field = array(
      'description' => 'The title of new edition nodes.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
      'initial' => '[node:title]',
    );
    db_add_field('simplenews_scheduler', 'title', $field);
  }
}