aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/send.php
blob: 884c20ccaa69c0a38b2db04b568a8aba4aaf3714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* Compose a message
*
* @package ElggMessages
*/

gatekeeper();

$page_owner = elgg_get_logged_in_user_entity();
set_page_owner($page_owner->getGUID());

$title = elgg_echo('messages:add');

elgg_push_breadcrumb($title);

$params = messages_prepare_form_vars(get_input('send_to'));
$params['friends'] = $page_owner->getFriends();
$content = elgg_view_form('messages/send', array(), $params);

$body = elgg_view_layout('content', array(
	'content' => $content,
	'title' => $title,
	'filter' => '',
	'buttons' => '',
));

echo elgg_view_page($title, $body);