You are here

function entityqueue_update_7002 in Entityqueue 7

Re-runs the fixed version of entityqueue_update_7001().

See also

http://www.drupal.org/node/2297599

File

./entityqueue.install, line 269
Install, update and uninstall functions for the Entityqueue module.

Code

function entityqueue_update_7002() {
  $ret = '';
  if (variable_get('entityqueue_broken_update_7001', TRUE)) {
    $ret = t('Ran fixed version of entityqueue_update_7001.');
    entityqueue_update_7001();

    // Run the update again.
  }

  // Now that the update is complete, we can remove our variable, since this
  // update won't run again.
  variable_del('entityqueue_broken_update_7001');
  return $ret;
}