$this->make_hook('reminder', AUTH_COOKIE), ); } function handler_reminder(&$page, $reminder_name = null, $action = null) { require_once 'reminder.inc.php'; $user = S::user(); // If no reminder name was passed, or if we don't know that reminder name, // just drop the request. if (!$reminder_name || !($reminder = Reminder::GetByName($user, $reminder_name))) { return PL_NOT_FOUND; } // Otherwise, the request is dispatched, and a new reminder, if any, is // displayed. $reminder->HandleAction($action); if ($new_reminder = Reminder::GetCandidateReminder($user)) { $new_reminder->Display($page); } else { exit; } } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>