* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ * @uses $vars['friends'] This is an array of a user's friends and is used to populate the list of * people the user can message * */ //grab the user id to send a message to. This will only happen if a user clicks on the 'send a message' //link on a user's profile or hover-over menu $send_to = get_input('send_to'); if ($send_to === "") $send_to = $_SESSION['msg_to']; $msg_title = $_SESSION['msg_title']; $msg_content = $_SESSION['msg_contents']; // clear sticky form cache in case user browses away from page and comes back unset($_SESSION['msg_to']); unset($_SESSION['msg_title']); unset($_SESSION['msg_contents']); ?>
".elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny'))."
"; //draw it echo "
".elgg_echo("messages:to").": username."'>".$user->username.""; //set the hidden input field to the recipients guid echo ""; echo "
"; } else { ?>

" />