public function notify_order_delayed($id) { access::verify_csrf(); self::check_view_orders(); $order = ORM::factory("bp_order", $id); if ($order->loaded()) { if ($order->status == Bp_Order_Model::PAYMENT_CONFIRMED) { //Send delay notification bp_order_log::log($order, Bp_Order_Log_Model::DELAYED); basket_plus::send_delay_notification($order); } } url::redirect("basket_plus/view_orders"); }