change_state.php 513 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Activate/deactive all plugins specified by guids array
  4. *
  5. * @uses $vars['guids'] Array of GUIDs
  6. * @uses $vars['action'] 'activate' or 'deactivate'
  7. */
  8. $guids = elgg_extract('guids', $vars, array());
  9. $guids = implode(',', $guids);
  10. echo '<div>';
  11. echo elgg_view('input/hidden', array(
  12. 'name' => 'guids',
  13. 'value' => $guids,
  14. ));
  15. echo elgg_view('input/submit', array(
  16. 'value' => elgg_echo("admin:plugins:{$vars['action']}_all"),
  17. 'class' => 'elgg-button elgg-button-action mrm'
  18. ));
  19. echo '</div>';