diff options
Diffstat (limited to 'views/default/admin/plugin_settings.php')
-rw-r--r-- | views/default/admin/plugin_settings.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/admin/plugin_settings.php b/views/default/admin/plugin_settings.php new file mode 100644 index 000000000..c2801cec3 --- /dev/null +++ b/views/default/admin/plugin_settings.php @@ -0,0 +1,25 @@ +<?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; + +if (elgg_view_exists("settings/$plugin_id/edit")) { + + $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 |