From 77b5489778ebe1c4abc4c78ef0ae326c180dfdf8 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 19 Dec 2011 21:41:08 -0500 Subject: added return_to page to public pages of walled garden --- start.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/start.php b/start.php index b243d6674..dbbb41785 100644 --- a/start.php +++ b/start.php @@ -29,6 +29,9 @@ function openid_client_init() { // don't let OpenID users set their passwords elgg_register_event_handler('pagesetup', 'system', 'openid_client_remove_email'); + + // the return to page needs to be public + elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'openid_client_public'); } /** @@ -108,3 +111,16 @@ function openid_client_remove_email() { elgg_unextend_view('forms/account/settings', 'core/settings/account/password'); } } + +/** + * Add the return_to page to the list of public pages for walled garden + * + * @param string $hook Hook name + * @param string $type Hook type + * @param array $pages Array of public pages + * @return array + */ +function openid_client_public($hook, $type, $pages) { + $pages[] = 'mod/openid_client/return.php'; + return $pages; +} -- cgit v1.2.3