From: cash Date: Tue, 20 Dec 2011 02:41:08 +0000 (-0500) Subject: added return_to page to public pages of walled garden X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=77b5489778ebe1c4abc4c78ef0ae326c180dfdf8;p=lorea%2Felgg.git added return_to page to public pages of walled garden --- 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; +}