Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
profileupdate.php
Go to the documentation of this file.
1 <?php
6 $item = $vars['item'];
7 /* @var ElggRiverItem $item */
8 
9 $subject = $item->getSubjectEntity();
10 
11 $subject_link = elgg_view('output/url', array(
12  'href' => $subject->getURL(),
13  'text' => $subject->name,
14  'class' => 'elgg-river-subject',
15  'is_trusted' => true,
16 ));
17 
18 $string = elgg_echo('river:update:user:profile', array($subject_link));
19 
20 echo elgg_view('river/elements/layout', array(
21  'item' => $item,
22  'summary' => $string,
23 
24  // truthy value to bypass responses rendering
25  'responses' => ' ',
26 ));
$string
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$subject
$vars['entity']
$item
Update profile river view.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$subject_link