Elgg  Version 1.11
change_state.php
Go to the documentation of this file.
1 <?php
9 $guids = elgg_extract('guids', $vars, array());
10 $guids = implode(',', $guids);
11 
12 echo '<div>';
13 echo elgg_view('input/hidden', array(
14  'name' => 'guids',
15  'value' => $guids,
16 ));
17 
18 echo elgg_view('input/submit', array(
19  'value' => elgg_echo("admin:plugins:{$vars['action']}_all"),
20  'class' => 'elgg-button elgg-button-action mrm'
21 ));
22 echo '</div>';
$guids
Activate/deactive all plugins specified by guids array.
Definition: change_state.php:9
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1246
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
if(file_exists($welcome)) $vars
Definition: upgrade.php:93