Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
profile_fields.php
Go to the documentation of this file.
1 <?php
6 $add = elgg_view_form('profile/fields/add', array('class' => 'elgg-form-settings'), array());
7 $list = elgg_view('admin/appearance/profile_fields/list');
8 
9 $reset = elgg_view('output/url', array(
10  'text' => elgg_echo('reset'),
11  'href' => 'action/profile/fields/reset',
12  'title' => elgg_echo('profile:resetdefault'),
13  'confirm' => elgg_echo('profile:resetdefault:confirm'),
14  'class' => 'elgg-button elgg-button-cancel',
15  'is_trusted' => 'true',
16 ));
17 
18 $body = <<<__HTML
19 $add
20 $list
21 <div class="mtl">$reset</div>
22 __HTML;
23 
24 echo $body;
$list
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
$reset
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$add
Admin area: edit default profile fields.