--- multiping.install 2010-02-21 11:24:52.000000000 +0000 +++ multiping.install 2010-04-17 15:00:09.000000000 +0100 @@ -94,6 +94,15 @@ function multiping_enable() { ); drupal_write_record('multiping', $pingomatic); } + + // If the Scheduler module is installed, set Multiping to run after it during a cron run so that + // content published by Scheduler can be pinged out immediately. + if (module_exists('scheduler')) { + $weight = (int)db_result(db_query("SELECT weight FROM {system} WHERE name = 'scheduler'")); + db_query("UPDATE {system} SET weight = %d WHERE name = 'multiping'", $weight + 10); + drupal_set_message(t('Multiping has been set to run after Scheduler during cron runs')); + } + } /**