aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugin_settings.php
blob: 7473768c0d9fd7fc104f2c1d6cbf47621d0c50aa (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
<?php
/**
 * Elgg plugin settings
 *
 * @uses ElggPlugin $vars['plugin'] The plugin object to display settings for.
 *
 * @package Elgg.Core
 * @subpackage Plugins.Settings
 */

$plugin = $vars['plugin'];
$plugin_id = $plugin->getID();

// required for plugin settings backward compatibility
$vars['entity'] = $plugin;

$settings = false;

if (elgg_view_exists("settings/$plugin_id/edit") || elgg_view_exists("plugins/$plugin_id/settings")) {
	$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);
}