You are here

function _notify_cron_next in Notify 7

Same name and namespace in other branches
  1. 8 notify.module \_notify_cron_next()
  2. 2.0.x notify.module \_notify_cron_next()
  3. 1.0.x notify.module \_notify_cron_next()
1 call to _notify_cron_next()
_notify_next_notificaton in ./notify.module
Compute the next time a notification shall be sent by adding to $send_last if required. Update $cron_next if it is has been reset (= 0), otherwise leave it to caller.

File

./notify.module, line 324
Notify module sends e-mail digests of new content and comments.

Code

function _notify_cron_next($next_time_to_send) {
  $send_hour = variable_get('notify_send_hour', 9);

  // Compute the next as the sending hour today.
  $cron_next = strtotime(date('Y-m-d ', $next_time_to_send) . $send_hour . ':00:00');
  return $cron_next;
}