aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/sitepages_functions.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 18:25:08 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 18:25:08 +0000
commitb027f962af16d074398d1351a90d863aaf5469f3 (patch)
treecb547da86008491ce9a25cafae56800fd4944229 /mod/sitepages/sitepages_functions.php
parentfd878435ffeb7478aa745f76dfcea608301a04ba (diff)
downloadelgg-b027f962af16d074398d1351a90d863aaf5469f3.tar.gz
elgg-b027f962af16d074398d1351a90d863aaf5469f3.tar.bz2
Updating Sitepages plugin settings for new administration layout.
git-svn-id: http://code.elgg.org/elgg/trunk@6242 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/sitepages_functions.php')
-rw-r--r--mod/sitepages/sitepages_functions.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/mod/sitepages/sitepages_functions.php b/mod/sitepages/sitepages_functions.php
index 5e9a4adc2..72418e81b 100644
--- a/mod/sitepages/sitepages_functions.php
+++ b/mod/sitepages/sitepages_functions.php
@@ -59,10 +59,7 @@ function sitepages_create_sitepage_object($page_type) {
* @param str $section
* @return str html
*/
-function sitepages_get_edit_section_content($page_type) {
- set_context('admin');
-
- $title = elgg_view_title(elgg_echo('sitepages'));
+function sitepages_get_edit_section_content($page_type, $entity=NULL) {
$menu = elgg_view('sitepages/menu', array('page_type' => $page_type));
switch ($page_type) {
@@ -80,11 +77,11 @@ function sitepages_get_edit_section_content($page_type) {
}
- $form .= elgg_view($view, array('page_type' => $page_type));
- $body = $title . $menu . $form;
-
- $content = elgg_view_layout('administration', $body);
- return $content;
+ $form .= elgg_view($view, array(
+ 'page_type' => $page_type,
+ 'entity' => $entity,
+ ));
+ return $menu . $form;
}
/**