diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 12:11:26 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 12:11:26 +0000 |
commit | 4659abbaebaf50f728b5cdc13c0f0c913be477d8 (patch) | |
tree | d4ad7d08e5f7ce4a249f9f69e1d02d17addf77db /views/default/admin | |
parent | fb68b74032f7f394f504f74a83cba1e36155ae3a (diff) | |
download | elgg-4659abbaebaf50f728b5cdc13c0f0c913be477d8.tar.gz elgg-4659abbaebaf50f728b5cdc13c0f0c913be477d8.tar.bz2 |
continued cleaning up admin plugin settings
git-svn-id: http://code.elgg.org/elgg/trunk@8150 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin')
-rw-r--r-- | views/default/admin/components/plugin_settings.php | 15 |
1 files changed, 5 insertions, 10 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")) { ?> <div class="elgg-module elgg-module-info"> @@ -19,15 +19,10 @@ if (elgg_view("settings/$plugin_id/edit")) { <h3><?php echo $plugin->manifest->getName(); ?></h3> </div> <div class="elgg-body"> - <div id="<?php echo $plugin_id; ?>_settings"> - <?php echo elgg_view("object/plugin", array( - 'plugin' => $plugin, - // in for backward compatibility - 'entity' => $plugin, - 'type' => 'admin' - )); - ?> - </div> + <?php + $params = array('internalid' => "$plugin_id-settings"); + echo elgg_view_form("plugins/settings/save", $params, $vars); + ?> </div> </div> <?php |