Elgg  Version 5.1
Variables
field.php File Reference

Go to the source code of this file.

Variables

 $input = elgg_extract('input', $vars)
 Form field view. More...
 
if(empty($input)) $view = elgg_extract('view', $vars)
 
if($view &&elgg_view_exists($view)) $label = elgg_extract('label', $vars, '')
 
 $help = elgg_extract('help', $vars, '')
 
 $class = elgg_extract_class($vars, 'elgg-field')
 
if(elgg_extract('required', $vars)) if(elgg_extract('disabled', $vars)) $field = $label . $input . $help
 

Variable Documentation

$class = elgg_extract_class($vars, 'elgg-field')

Definition at line 29 of file field.php.

if (elgg_extract('required', $vars)) if (elgg_extract('disabled', $vars)) $field = $label . $input . $help

Definition at line 38 of file field.php.

$help = elgg_extract('help', $vars, '')

Definition at line 27 of file field.php.

$input = elgg_extract('input', $vars)

Form field view.

$vars['input'] Form input element $vars['id'] ID attribute of the input element $vars['required'] Required or optional input $vars['label'] HTML content of the label element $vars['help'] HTML content of the help element $vars['view'] View to use to render the field

Definition at line 13 of file field.php.

if ($view &&elgg_view_exists($view)) $label = elgg_extract('label', $vars, '')
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 26 of file field.php.

if (empty($input)) $view = elgg_extract('view', $vars)

Definition at line 18 of file field.php.