aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/admin/plugins/change_state.php
blob: ba5d873e720450e8e81e9cd8afef44ffbb008e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'
));