killrequest.php 959 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. $group = elgg_extract('group', $vars);
  3. $user = elgg_extract('user', $vars);
  4. if (!($group instanceof ElggGroup)) {
  5. return;
  6. }
  7. if (!($user instanceof ElggUser)) {
  8. return;
  9. }
  10. $content = elgg_view('input/hidden', array('name' => 'group_guid', 'value' => $group->getGUID()));
  11. $content .= elgg_view('input/hidden', array('name' => 'user_guid', 'value' => $user->getGUID()));
  12. $content .= elgg_echo('group_tools:groups:membershipreq:kill_request:prompt');
  13. $content .= elgg_view('input/plaintext', array(
  14. 'name' => 'reason',
  15. 'rows' => '3',
  16. 'class' => 'mbm'
  17. ));
  18. $content .= '<div class="elgg-foot">';
  19. $content .= elgg_view('input/button', array(
  20. 'value' => elgg_echo('cancel'),
  21. 'class' => 'elgg-button-cancel float-alt',
  22. 'onclick' => '$.colorbox.close();'
  23. ));
  24. $content .= elgg_view('input/submit', array(
  25. 'value' => elgg_echo('decline')
  26. ));
  27. $content .= '</div>';
  28. echo elgg_view_module('info', elgg_echo('groups:joinrequest:remove:check'), $content);