From 4659abbaebaf50f728b5cdc13c0f0c913be477d8 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 12:11:26 +0000 Subject: continued cleaning up admin plugin settings git-svn-id: http://code.elgg.org/elgg/trunk@8150 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/components/plugin_settings.php | 15 +++++---------- views/default/forms/plugins/settings/save.php | 3 +-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php index 8179728ed..30cf3d21a 100644 --- a/views/default/admin/components/plugin_settings.php +++ b/views/default/admin/components/plugin_settings.php @@ -11,7 +11,7 @@ $plugin = $vars['plugin']; $plugin_id = $plugin->getID(); -if (elgg_view("settings/$plugin_id/edit")) { +if (elgg_view_exists("settings/$plugin_id/edit")) { ?>
@@ -19,15 +19,10 @@ if (elgg_view("settings/$plugin_id/edit")) {

manifest->getName(); ?>

-
- $plugin, - // in for backward compatibility - 'entity' => $plugin, - 'type' => 'admin' - )); - ?> -
+ "$plugin_id-settings"); + echo elgg_view_form("plugins/settings/save", $params, $vars); + ?>
"; echo elgg_view('input/hidden', array('internalname' => 'plugin_id', 'value' => $plugin_id)); echo elgg_view('input/hidden', array('internalname' => 'user_guid', 'value' => $user_guid)); echo elgg_view('input/submit', array('value' => elgg_echo('save'))); echo "

"; - -- cgit v1.2.3