aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/start.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/start.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/start.php')
-rw-r--r--mod/sitepages/start.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php
index 180739cca..943688020 100644
--- a/mod/sitepages/start.php
+++ b/mod/sitepages/start.php
@@ -16,7 +16,7 @@
* DRY up actions and views
* Use $entity->view to redirect to url of page.
* The tool settings view is probably not needed as it can be added to the front page edit tab.
- * You can say pg/sitepages/edit|read/any_page_i_want and it will let you.
+ * You can say pg/sitepages/read/any_page_i_want and it will let you.
*/
/**
@@ -50,18 +50,7 @@ function sitepages_init() {
// hook into the walled garden pages
register_plugin_hook('public_pages', 'walled_garden', 'sitepages_public_pages');
- register_action("sitepages/add", FALSE, $CONFIG->pluginspath . "sitepages/actions/add.php");
- register_action("sitepages/addfront", FALSE, $CONFIG->pluginspath . "sitepages/actions/addfront.php");
- register_action("sitepages/addfrontsimple", FALSE, $CONFIG->pluginspath . "sitepages/actions/addfrontsimple.php");
- register_action("sitepages/addmeta", FALSE, $CONFIG->pluginspath . "sitepages/actions/addmeta.php");
- register_action("sitepages/edit", FALSE, $CONFIG->pluginspath . "sitepages/actions/edit.php");
- register_action("sitepages/delete", FALSE, $CONFIG->pluginspath . "sitepages/actions/delete.php");
-
- elgg_add_submenu_item(array(
- 'text' => elgg_echo('sitepages'),
- 'href' => "{$CONFIG->wwwroot}pg/sitepages/edit/front",
- 'parent_id' => 'site',
- ), 'admin', 'default');
+ register_action('settings/sitepages/save', FALSE, "{$CONFIG->pluginspath}sitepages/actions/edit_settings.php");
}
/**
@@ -136,13 +125,6 @@ function sitepages_page_handler($page) {
$page_type = isset($page[1]) ? $page[1] : FALSE;
switch ($action) {
- case 'edit':
- admin_gatekeeper();
- $title = elgg_echo('sitepages');
- $content = sitepages_get_edit_section_content($page_type);
-
- break;
-
case 'read':
$title = elgg_echo('sitepages:' . strtolower($page_type));
$content = sitepages_get_page_content($page_type);