Elgg  Version master
Variables
remove.php File Reference

Go to the source code of this file.

Variables

if(elgg_extract('show_remove', $vars, true)===false) $entity = elgg_extract('entity', $vars)
 Show a remove icon toggle. More...
 
if(!$entity instanceof ElggEntity$icon_type = elgg_extract('icon_type', $vars, 'icon')
 
if(!$entity->hasIcon('master', $icon_type)) $name = elgg_extract('remove_name', $vars)
 
if(elgg_is_empty($name)) if(elgg_language_key_exists("entity:edit:{$icon_type}:remove:label")) else
 

Variable Documentation

if (elgg_extract('show_remove', $vars, true)===false) $entity = elgg_extract('entity', $vars)

Show a remove icon toggle.

$vars['entity'] entity to edit $vars['icon_type'] the type of the icon (default: icon) $vars['name'] name of the input/file (default: icon) $vars['remove_name'] name of the remove icon toggle (default: $vars['name'] . '_remove') $vars['show_remove'] show the remove icon option (default: true)

Definition at line 16 of file remove.php.

if (!$entity instanceof ElggEntity) $icon_type = elgg_extract('icon_type', $vars, 'icon')

Definition at line 22 of file remove.php.

if (!$entity->hasIcon('master', $icon_type)) $name = elgg_extract('remove_name', $vars)

Definition at line 28 of file remove.php.

if (elgg_is_empty($name)) if (elgg_language_key_exists("entity:edit:{$icon_type}:remove:label")) else
Initial value:
{
$label = elgg_echo('entity:edit:icon:remove:label')
if($view &&elgg_view_exists($view)) $label
Definition: field.php:26
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 36 of file remove.php.