diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 00:12:17 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 00:12:17 +0000 |
commit | 00ea6e1ddd446c61c6ccd956989b4b9a1cd60119 (patch) | |
tree | 4d3d546d88326fd976a8f75c0b4d4dac9b54ef1b /views/default/object/plugin.php | |
parent | 8439fcf13d794780c89925896b8aaca521c14e30 (diff) | |
download | elgg-00ea6e1ddd446c61c6ccd956989b4b9a1cd60119.tar.gz elgg-00ea6e1ddd446c61c6ccd956989b4b9a1cd60119.tar.bz2 |
Refs #2950: Cleanup of plugin-related view structure
git-svn-id: http://code.elgg.org/elgg/trunk@8394 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/object/plugin.php')
-rw-r--r-- | views/default/object/plugin.php | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php index e9cacca35..af1ccd677 100644 --- a/views/default/object/plugin.php +++ b/views/default/object/plugin.php @@ -5,18 +5,14 @@ * @package Elgg.Core * @subpackage Plugins * - * @todo This view really should be used to display visualization on the admin panel, \ - * rather than emitting the settings forms */ -// Do we want to show admin settings or user settings -$type = elgg_extract('type', $vars, ''); +$plugin = $vars['entity']; -if ($type != 'user') { - $type = ''; +if (!$plugin->isValid()) { + echo elgg_view('object/plugin/invalid', $vars); +} elseif ($vars['full']) { + echo elgg_view('object/plugin/advanced', $vars); +} else { + echo elgg_view('object/plugin/simple', $vars); } - -?> -<div> - <?php echo elgg_view_form("plugins/{$type}settings/save", array(), $vars); ?> -</div>
\ No newline at end of file |