\r
// don't let OpenID users set their passwords\r
elgg_register_event_handler('pagesetup', 'system', 'openid_client_remove_email');\r
+\r
+ // the return to page needs to be public\r
+ elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'openid_client_public');\r
}\r
\r
/**\r
elgg_unextend_view('forms/account/settings', 'core/settings/account/password');\r
}\r
}\r
+\r
+/**\r
+ * Add the return_to page to the list of public pages for walled garden\r
+ *\r
+ * @param string $hook Hook name\r
+ * @param string $type Hook type\r
+ * @param array $pages Array of public pages\r
+ * @return array\r
+ */\r
+function openid_client_public($hook, $type, $pages) {\r
+ $pages[] = 'mod/openid_client/return.php';\r
+ return $pages;\r
+}\r