Elgg  Version 5.1
Variables
icon.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Generic entity icon upload helper. More...
 
if($entity instanceof ElggEntity$content = elgg_view('entity/edit/icon/file', $vars)
 

Variable Documentation

$content = elgg_view('entity/edit/icon/file', $vars)

Definition at line 24 of file icon.php.

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

Generic entity icon upload helper.

$vars['entity'] (optional) entity to edit $vars['entity_type'] (recommended) entity type for which the icon will be uploaded $vars['entity_subtype'] (recommended) entity subtype for which the icon will be uploaded $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['required'] is icon upload required (default: false) $vars['show_remove'] show the remove icon option (default: true) $vars['show_thumb'] show the thumb of the entity if available (default: true) $vars['thumb_size'] the icon size to use as the thumb (default: medium) $vars['cropper_enabled'] enable cropper features (default: true), see the view 'entity/edit/icon/crop' for more details

Definition at line 18 of file icon.php.