Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
edit.php
Go to the documentation of this file.
1 <?php
6 $num_display = sanitize_int($vars['entity']->num_display, false);
7 // set default value for display number
8 if (!$num_display) {
9  $num_display = 8;
10 }
11 
12 $params = array(
13  'name' => 'params[num_display]',
14  'value' => $num_display,
15  'options' => array(5, 8, 10, 12, 15, 20),
16 );
17 $dropdown = elgg_view('input/select', $params);
18 
19 ?>
20 <p>
21  <?php echo elgg_echo('widget:numbertodisplay'); ?>:
22  <?php echo $dropdown; ?>
23 </p>
$num_display
Banned users widget edit view.
Definition: edit.php:6
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$vars['entity']
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
if($entity->hasIcon('master')) $params
Definition: edit.php:27
$dropdown
Definition: edit.php:17
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:180