|
@@ -1053,17 +1053,20 @@ function tripal_cron() {
|
|
|
|
|
|
// Add jobs to the Tripal queue for commong tasks.
|
|
|
$args = array();
|
|
|
+ $includes = array();
|
|
|
|
|
|
if (variable_get('tripal_admin_notification_creation_during_cron', TRUE)) {
|
|
|
$modules = module_implements('tripal_cron_notification');
|
|
|
foreach ($modules as $module) {
|
|
|
$function = $module . '_tripal_cron_notification';
|
|
|
- tripal_add_job("Cron: Checking for '$module' notifications.", 'tripal', $function, $args, 1);
|
|
|
+ tripal_add_job("Cron: Checking for '$module' notifications.", 'tripal',
|
|
|
+ $function, $args, 1, $includes, TRUE);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Check for expired collections.
|
|
|
- tripal_add_job('Cron: Checking expired collections', 'tripal', 'tripal_expire_collections', $args, 1);
|
|
|
+ tripal_add_job('Cron: Checking expired collections', 'tripal',
|
|
|
+ 'tripal_expire_collections', $args, 1, $includes, TRUE);
|
|
|
}
|
|
|
|
|
|
/**
|