aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/admin/components/plugin_settings.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php
index 48e65b4dd..6feb78725 100644
--- a/views/default/admin/components/plugin_settings.php
+++ b/views/default/admin/components/plugin_settings.php
@@ -12,18 +12,11 @@ $plugin = $vars['plugin'];
$plugin_id = $plugin->getID();
if (elgg_view_exists("settings/$plugin_id/edit")) {
-?>
-
-<div class="elgg-module elgg-module-info">
- <div class="elgg-head">
- <h3><?php echo $plugin->manifest->getName(); ?></h3>
- </div>
- <div class="elgg-body">
- <?php
- $params = array('id' => "$plugin_id-settings");
- echo elgg_view_form("plugins/settings/save", $params, $vars);
- ?>
- </div>
-</div>
-<?php
+
+ $title = $plugin->manifest->getName();
+
+ $params = array('id' => "$plugin_id-settings");
+ $body = elgg_view_form("plugins/settings/save", $params, $vars);
+
+ echo elgg_view_module('info', $title, $body);
} \ No newline at end of file