Elgg  Version 2.3
Variables
num_display.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('entity', $vars)
 Widget edit num_display. More...
 
 $name = elgg_extract('name', $vars, 'num_display')
 
 $vars ['name'] = "params[{$name}]"
 
if(!isset($vars['label'])) $vars ['#label'] = $vars['label']
 
if(!isset($vars['options'])) $value = sanitize_int($widget->$name, false)
 
if(!$value) $vars ['value'] = $value
 
 $vars ['#type'] = 'select'
 

Variable Documentation

$name = elgg_extract('name', $vars, 'num_display')

Definition at line 16 of file num_display.php.

if (!isset($vars['options'])) $value = sanitize_int($widget->$name, false)

Definition at line 29 of file num_display.php.

$vars['name'] = "params[{$name}]"

Definition at line 17 of file num_display.php.

if (!isset($vars['label'])) $vars['#label'] = $vars['label']

Definition at line 22 of file num_display.php.

if (!$value) $vars['value'] = $value

Definition at line 33 of file num_display.php.

$vars['#type'] = 'select'

Definition at line 34 of file num_display.php.

$widget = elgg_extract('entity', $vars)

Widget edit num_display.

$vars['entity'] ElggWidget $vars['name'] (optional) The name of the attribute, defaults to 'num_display' $vars['default'] (optional) The default value if no value is set, defaults to first option

Definition at line 10 of file num_display.php.