Elgg
Version master
|
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) |
$entity = elgg_extract('entity', $vars) |
Generic entity icon upload helper.
@uses $vars['entity'] (optional) entity to edit @uses $vars['entity_type'] (recommended) entity type for which the icon will be uploaded @uses $vars['entity_subtype'] (recommended) entity subtype for which the icon will be uploaded @uses $vars['icon_type'] the type of the icon (default: icon) @uses $vars['name'] name of the input/file (default: icon) @uses $vars['remove_name'] name of the remove icon toggle (default: $vars['name'] . '_remove') @uses $vars['required'] is icon upload required (default: false) @uses $vars['show_remove'] show the remove icon option (default: true) @uses $vars['show_thumb'] show the thumb of the entity if available (default: true) @uses $vars['thumb_size'] the icon size to use as the thumb (default: medium) @uses $vars['cropper_enabled'] enable cropper features (default: true), see the view 'entity/edit/icon/crop' for more details