aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/object/plugin.php20
1 files changed, 5 insertions, 15 deletions
diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php
index 543d9926c..aaa5d6681 100644
--- a/views/default/object/plugin.php
+++ b/views/default/object/plugin.php
@@ -13,22 +13,12 @@
$entity = $vars['entity'];
$plugin = $vars['plugin'];
$prefix = $vars['prefix']; // Do we want to show admin settings (default) or user settings
+
+ $form_body = elgg_view("{$prefix}settings/{$plugin}/edit",$vars);
+ $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin)) . elgg_view('input/submit', array('value' => elgg_echo('save'))) . "</p>";
+
?>
<div>
- <form action="<?php echo $vars['url']; ?>action/plugins/<?php echo $prefix; ?>settings/save" method="post">
-
- <?php
- echo elgg_view("{$prefix}settings/{$plugin}/edit",$vars);
- ?>
-
- <p>
- <input type="hidden" name="plugin" value="<?php echo $plugin ?>" />
- <input type="submit" value="<?php
-
- echo elgg_echo('save');
-
- ?>" />
- </p>
- </form>
+ <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/plugins/{$prefix}settings/save")); ?>
</div> \ No newline at end of file