"; foreach ($requests as $user) { $icon = elgg_view_entity_icon($user, "tiny", array("use_hover" => "true")); $user_title = elgg_view("output/url", array( "href" => $user->getURL(), "text" => $user->name, "is_trusted" => true, )); $url = "action/groups/addtogroup?user_guid=" . $user->getGUID() . "&group_guid=" . $group->getGUID(); $accept_button = elgg_view("output/url", array( "href" => $url, "text" => elgg_echo("accept"), "class" => "elgg-button elgg-button-submit group-tools-accept-request", "rel" => $user->getGUID(), "is_action" => true )); $form_vars = array( 'id' => "group-kill-request-{$user->getGUID()}", 'data-guid' => $user->getGUID(), ); $body_vars = array( 'group' => $group, 'user' => $user, ); $decline_form = elgg_view_form('groups/killrequest', $form_vars, $body_vars); $delete_button = elgg_format_element('div', array('class' => 'hidden'), $decline_form); $delete_button .= elgg_view("output/url", array( "href" => false, "text" => elgg_echo("decline"), "class" => "elgg-button elgg-button-delete mlm elgg-lightbox", "rel" => $user->getGUID(), "data-colorbox-opts" => json_encode(array( 'inline' => true, 'href' => "#group-kill-request-{$user->getGUID()}", 'width' => '600px', 'closeButton' => false )), )); $body = "