diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-09 20:19:08 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-09 20:19:08 +0000 |
commit | 64045426f4eb5150c46dd2534058c3522bbe6ecf (patch) | |
tree | c9ebdf02326824eb0b940c2ebbe0bc333668ffad /views/default/forms | |
parent | 4886371c1709f5b098226e362986796b960f4e54 (diff) | |
download | elgg-64045426f4eb5150c46dd2534058c3522bbe6ecf.tar.gz elgg-64045426f4eb5150c46dd2534058c3522bbe6ecf.tar.bz2 |
Fixes #2871 activate all/deactivate all now sensitive to filtering
git-svn-id: http://code.elgg.org/elgg/trunk@9158 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms')
-rw-r--r-- | views/default/forms/admin/plugins/change_state.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/forms/admin/plugins/change_state.php b/views/default/forms/admin/plugins/change_state.php new file mode 100644 index 000000000..ba5d873e7 --- /dev/null +++ b/views/default/forms/admin/plugins/change_state.php @@ -0,0 +1,20 @@ +<?php +/** + * Activate/deactive all plugins specified by guids array + * + * @uses $vars['guids'] Array of GUIDs + * @uses $vars['action'] 'activate' or 'deactivate' + */ + +$guids = elgg_extract('guids', $vars, array()); +$guids = implode(',', $guids); + +echo elgg_view('input/hidden', array( + 'name' => 'guids', + 'value' => $guids, +)); + +echo elgg_view('input/submit', array( + 'value' => elgg_echo("admin:plugins:{$vars['action']}_all"), + 'class' => 'elgg-button elgg-button-action' +)); |