From b027f962af16d074398d1351a90d863aaf5469f3 Mon Sep 17 00:00:00 2001 From: nickw Date: Wed, 26 May 2010 18:25:08 +0000 Subject: Updating Sitepages plugin settings for new administration layout. git-svn-id: http://code.elgg.org/elgg/trunk@6242 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/sitepages/start.php | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'mod/sitepages/start.php') 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); -- cgit v1.2.3