Elgg  Version 1.9
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 = 5;
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
p
Definition: admin.php:118
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$dropdown
Definition: edit.php:17
if(isset($entity->icontime)) $params
Definition: edit.php:27
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:161
if(file_exists($welcome)) $vars
Definition: upgrade.php:93