Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
add.php
Go to the documentation of this file.
1 <?php
9 // You need to be logged in for this one
10 elgg_gatekeeper();
11 
12 $title = elgg_echo('friends:collections:add');
13 
14 $content = elgg_view_form('friends/collections/add', array(), array(
15  'friends' => elgg_get_logged_in_user_entity()->getFriends(array('limit' => 0)),
16 ));
17 
18 $body = elgg_view_layout('one_sidebar', array(
19  'title' => $title,
20  'content' => $content
21 ));
22 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_form($action, $form_vars=array(), $body_vars=array())
Definition: views.php:1302
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:679
$content
Definition: add.php:14
$body
Definition: add.php:7
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:32
$title
Display an add user form.
Definition: add.php:6
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437