function _notify_cron_next in Notify 8
Same name and namespace in other branches
- 7 notify.module \_notify_cron_next()
- 2.0.x notify.module \_notify_cron_next()
- 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 should be sent.
File
- ./
notify.module, line 419 - Notify module sends e-mail digests of new content and comments.
Code
function _notify_cron_next($next_time_to_send) {
$config = \Drupal::config('notify.settings');
$send_hour = $config
->get('notify_send_hour');
// 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;
}