function _datereminder_update_reminder_nexts in Date Reminder 6
Same name and namespace in other branches
- 6.2 includes/node.inc \_datereminder_update_reminder_nexts()
- 7 includes/node.inc \_datereminder_update_reminder_nexts()
Recompute "next" time and write back a group of reminders.
This might be reminders associated with a node when the node changes, or a set of reminders whose time has expired and we need to move on to the next occurance.
Note that reminders that are past last occurance of this node will be deleted.
Parameters
array $rems: list of reminders
2 calls to _datereminder_update_reminder_nexts()
- _datereminder_cron in includes/
cron.inc - Implements hook_cron().
- _datereminder_update_node_reminders in ./
datereminder.module - Update all reminders for a node if the node is updated.
File
- ./
datereminder.module, line 208 - Support for reminders for nodes with dates.
Code
function _datereminder_update_reminder_nexts($rems) {
module_load_include('inc', 'datereminder', 'includes/date');
foreach ($rems as $r) {
_datereminder_complete_reminder($r);
_datereminder_get_next_reminder($r);
}
_datereminder_set_reminders($rems);
}