Elgg  Version 2.3
Namespaces | Variables
longtext.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-longtext')
 
 $defaults
 
 $editor_opts = (array) elgg_extract('editor_options', $vars, [])
 
 $editor_opts ['disabled'] = !elgg_extract('editor', $vars, true)
 
 $editor_opts ['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'
 
 $vars ['data-editor-opts'] = json_encode($editor_opts)
 
 $value = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8')
 

Variable Documentation

Initial value:
= array(
'value' => '',
'rows' => '10',
'cols' => '50',
'id' => "elgg-input-" . base_convert(mt_rand(), 10, 36),
)

Definition at line 23 of file longtext.php.

$editor_opts = (array) elgg_extract('editor_options', $vars, [])

Definition at line 32 of file longtext.php.

$editor_opts['disabled'] = !elgg_extract('editor', $vars, true)

Definition at line 33 of file longtext.php.

$editor_opts['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'

Definition at line 34 of file longtext.php.

$value = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8')

Definition at line 21 of file longtext.php.

$vars['data-editor-opts'] = json_encode($editor_opts)

Definition at line 40 of file longtext.php.