You are here

function simplenews_scheduler_update_7002 in Simplenews Scheduler 7

Update the module weight if it has not been customized.

File

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

Code

function simplenews_scheduler_update_7002() {

  // Update the module weight to run before simplenews.
  db_update('system')
    ->condition('name', 'simplenews_scheduler')
    ->condition('weight', 0)
    ->fields(array(
    'weight' => -1,
  ))
    ->execute();
}