blob: 730c8ff32b52cec36f4ed505412e4b89240afff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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 '<div>';
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 mrm'
));
echo '</div>';
|