/** * Displays a list of group objects that have been searched for. * * @see elgg_view_entity_list * * @param string $tag Search criteria * @param int $limit The number of entities to display on a page * * @return string The list in a form suitable to display * @deprecated 1.7 */ function list_group_search($tag, $limit = 10) { elgg_deprecated_notice('list_group_search() was deprecated by new search plugin.', 1.7); $offset = (int) get_input('offset'); $limit = (int) $limit; $count = (int) search_for_group($tag, 10, 0, '', true); $entities = search_for_group($tag, $limit, $offset); return elgg_view_entity_list($entities, $count, $offset, $limit, true, false); }
/** * Displays a list of group objects that have been searched for. * * @see elgg_view_entity_list * * @param string $tag Search criteria * @param int $limit The number of entities to display on a page * @return string The list in a form suitable to display */ function list_group_search($tag, $limit = 10) { $offset = (int) get_input('offset'); $limit = (int) $limit; $count = (int) search_for_group($tag, 10, 0, '', true); $entities = search_for_group($tag, $limit, $offset); return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, false); }