ABANDONED The plugin had a serious negative impact on performance, so I have abandoned it. Use https://github.com/hypeJunction/hypeLists
- Generic API and UI for uploading, handling and cropping entity avatars
To allow entities to have avatars, use 'avatars:enabled', "$type:$subtype"
hook.
echo elgg_view('input/avatar', array(
'entity' => $entity,
'name' => 'upload',
));
avatars_create_avatar_from_upload($entity, 'upload');