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.
To structure my code in a better way, I'd like to relocate some or all worker callbacks to different files and to implement this, it is quite simple to just add another optional parameter to the API and a include_once to the dispatch() function. A patch is included with this issue.
Comment | File | Size | Author |
---|---|---|---|
job_scheduler_worker_callback_include_file.patch | 663 bytes | jurgenhaas | |
Comments
Comment #1
twistor CreditAttribution: twistor commentedPatches should be created from the module directory.
Simple enough though.
http://drupalcode.org/project/job_scheduler.git/commit/6f127b4