blob: 1f31e9e0277a377cc4bc5337c7a23002643cb253 (
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 = get_loggedin_user();
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);
|