search.php 525 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Search for content in this group
  4. *
  5. * @uses vars["entity"] ElggGroup
  6. */
  7. $group = elgg_extract("entity", $vars);
  8. if (!empty($group) && elgg_instanceof($group, "group")) {
  9. if ($group->getPrivateSetting("group_tools:cleanup:search") != "yes") {
  10. $url = elgg_get_site_url() . "search";
  11. $body = elgg_view_form("groups/search", array(
  12. "action" => $url,
  13. "method" => "get",
  14. "disable_security" => true,
  15. ), $vars);
  16. // echo elgg_view_module("aside", elgg_echo("groups:search_in_group"), $body);
  17. }
  18. }