Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have found if I uninstall the job scheduler module, then it does not delete the variables created by job scheduler module.
These variables are unused if we are not using job_scheduler anymore.
Needs to create a patch for the same.
Comment | File | Size | Author |
---|---|---|---|
#4 | uninstall_variables.patch | 309 bytes | vivekguptakota |
#3 | 527096_22914_uninstall_variables.patch | 552 bytes | RavindraSingh |
Comments
Comment #1
RavindraSingh CreditAttribution: RavindraSingh commentedComment #2
RavindraSingh CreditAttribution: RavindraSingh commentedComment #3
RavindraSingh CreditAttribution: RavindraSingh commentedImplemented patch for the issue
/*
* Implementation hook_uninstall().
*/
function job_scheduler_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'job_scheduler%'");
}
Comment #4
vivekguptakota CreditAttribution: vivekguptakota commentedYou can also add following code in .install file
/*
* Implements hook_uninstall().
*/
function job_scheduler_uninstall() {
variable_del('job_scheduler_rebuild_all');
}
Comment #5
RavindraSingh CreditAttribution: RavindraSingh commentedjob scheduler generates variables dynamically. if you might have observed it with feeds module to adding importer id so variable_del('job_scheduler_rebuild_all'); is not sufficient.
Comment #6
RavindraSingh CreditAttribution: RavindraSingh commentedComment #8
webflo CreditAttribution: webflo commentedThanks! Merged both patches on commit.