aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-19 21:41:08 -0500
committercash <cash.costello@gmail.com>2011-12-19 21:41:08 -0500
commit77b5489778ebe1c4abc4c78ef0ae326c180dfdf8 (patch)
tree9d11184ddf3cdb43f23893be9736e38661fb961a
parentaae0fa0c6762d25e048c297156f8969c6242eb11 (diff)
downloadelgg-77b5489778ebe1c4abc4c78ef0ae326c180dfdf8.tar.gz
elgg-77b5489778ebe1c4abc4c78ef0ae326c180dfdf8.tar.bz2
added return_to page to public pages of walled garden
-rw-r--r--start.php16
1 files changed, 16 insertions, 0 deletions
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;
+}