You are here

function ultimate_cron_uninstall in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8 ultimate_cron.install \ultimate_cron_uninstall()
  2. 6 ultimate_cron.install \ultimate_cron_uninstall()
  3. 7 ultimate_cron.install \ultimate_cron_uninstall()

Implements hook_uninstall().

File

./ultimate_cron.install, line 253
Installation file for Ultimate Cron.

Code

function ultimate_cron_uninstall() {
  variable_del('ultimate_cron_disable_scheduled');
  db_delete('variable')
    ->condition('name', db_like('default_ultimate_cron_job') . '%', 'LIKE')
    ->execute();
  db_delete('variable')
    ->condition('name', db_like('uc-progress:ultimate_cron_plugin') . '%', 'LIKE')
    ->execute();
  db_delete('variable')
    ->condition('name', db_like('ultimate_cron_plugin') . '%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
}