aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/components/plugin_settings.php
blob: d5e25b4c1ba98d8aa15cfdf832097ec50f3da5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * Elgg plugin settings
 *
 * @package Elgg
 * @subpackage Core
 */

$plugin = $vars['plugin'];
$plugin_info = load_plugin_manifest($plugin);

$form_body = elgg_view("settings/{$plugin}/edit", $vars);
$form_body .= elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('save')));
//$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset')));

?>
<div class="elgg-module elgg-module-inline">
	<div class="elgg-head">
		<h3><?php echo $plugin_info['name']; ?></h3>
	</div>
	<div class="elgg-body">
		<?php
			echo elgg_view('input/form', array(
				'body' => $form_body,
				'internalid' => 'plugin_settings',
				'action' => "action/plugins/settings/save",
			));
		?>
	</div>
</div>