aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin.php
blob: 5c7138e966b379df84a39cbe7fbe1ad06d15d33c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Used to show plugin user settings.
 *
 * @package Elgg.Core
 * @subpackage Plugins
 *
 */

if (!elgg_in_context('admin')) {
	forward('/', 403);
}

$plugin = $vars['entity'];

if (!$plugin->isValid()) {
	echo elgg_view('object/plugin/invalid', $vars);
} else {
	echo elgg_view('object/plugin/full', $vars);
}