/** * Sends an indirect message indicating an error. This is a convenience function * for {@link openid_indirect_response()}. * * @param string $url the URL to which the error message is to be sent * @param string $error the error message or code * @param array $additional any additional data to be sent with the error * message * @param Request $request the request in response to which the error is made */ protected function indirectError($url, $error, $additional = array(), $request = NULL) { $error = Response::createError($error, $additional, $request); $error->render($url); }