aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-10-26 12:39:05 +0200
committerSem <sembrestels@riseup.net>2011-10-26 12:39:05 +0200
commite778258e839965597e5ebb8da362806db83e0dfb (patch)
treeb4ae12c694fe6b8d845f5a38fdf895cac252c4de /mod
parent6628e7db7895855784e43fce74c7dec41f01c2dc (diff)
downloadelgg-e778258e839965597e5ebb8da362806db83e0dfb.tar.gz
elgg-e778258e839965597e5ebb8da362806db83e0dfb.tar.bz2
Closes #3947. External pages are now viewable by visitors in walled-garden sites. Footer menu is also added into walled-garden logging page.
Diffstat (limited to 'mod')
-rw-r--r--mod/externalpages/start.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/externalpages/start.php b/mod/externalpages/start.php
index 1de4d5ec8..ce911bf10 100644
--- a/mod/externalpages/start.php
+++ b/mod/externalpages/start.php
@@ -12,6 +12,9 @@ function expages_init() {
elgg_register_page_handler('terms', 'expages_page_handler');
elgg_register_page_handler('privacy', 'expages_page_handler');
elgg_register_page_handler('expages', 'expages_page_handler');
+
+ // Register public external pages
+ elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'expages_public');
// add a menu item for the admin edit page
elgg_register_admin_menu_item('configure', 'expages', 'appearance');
@@ -25,6 +28,15 @@ function expages_init() {
}
/**
+ * Extend the public pages range
+ *
+ */
+function expages_public($hook, $handler, $return, $params){
+ $pages = array('about', 'terms', 'privacy');
+ return array_merge($pages, $return);
+}
+
+/**
* Setup the links to site pages
*/
function expages_setup_footer_menu() {