diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-09 21:44:12 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-09 21:44:12 +0000 |
commit | 6f41511034886224e0888d2f886c7d7ccc48636d (patch) | |
tree | c7cdb8a103ce8202fa4568da5c91377d2dea418e /views/default/admin/components | |
parent | 3da61eb88485680eb9480c24d56b05d08c218f1b (diff) | |
download | elgg-6f41511034886224e0888d2f886c7d7ccc48636d.tar.gz elgg-6f41511034886224e0888d2f886c7d7ccc48636d.tar.bz2 |
Refs #2874: More removal of deprecated function user in plugins systems.
git-svn-id: http://code.elgg.org/elgg/trunk@8089 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/components')
-rw-r--r-- | views/default/admin/components/plugin_settings.php | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php index d5e25b4c1..8179728ed 100644 --- a/views/default/admin/components/plugin_settings.php +++ b/views/default/admin/components/plugin_settings.php @@ -2,30 +2,33 @@ /** * Elgg plugin settings * - * @package Elgg - * @subpackage Core + * @uses ElggPlugin $vars['plugin'] The plugin object to display settings for. + * + * @package Elgg.Core + * @subpackage Plugins.Settings */ $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'))); +$plugin_id = $plugin->getID(); +if (elgg_view("settings/$plugin_id/edit")) { ?> -<div class="elgg-module elgg-module-inline"> + +<div class="elgg-module elgg-module-info"> <div class="elgg-head"> - <h3><?php echo $plugin_info['name']; ?></h3> + <h3><?php echo $plugin->manifest->getName(); ?></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 id="<?php echo $plugin_id; ?>_settings"> + <?php echo elgg_view("object/plugin", array( + 'plugin' => $plugin, + // in for backward compatibility + 'entity' => $plugin, + 'type' => 'admin' )); - ?> + ?> + </div> </div> </div> +<?php +}
\ No newline at end of file |