Elgg  Version 2.3
add.php
Go to the documentation of this file.
1 <?php
9 // You need to be logged in for this one
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:1345
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:689
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
Definition: pagehandler.php:58
$content
Definition: add.php:14
elgg echo
Translates a string.
Definition: languages.js:48
$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:447