A new way of registering entity capabilities has been introduced. The following related functions have been deprecated:
elgg_register_entity_type()
useelgg_entity_enable_capability($type, $subtype, 'searchable')
elgg_unregister_entity_type()
useelgg_entity_disable_capability($type, $subtype, 'searchable')
get_registered_entity_types()
useelgg_entity_types_with_capability('searchable')
is_registered_entity_type()
useelgg_entity_has_capability($type, $subtype, 'searchable')
The config variable registered_entities
is no longer available.
The current implemented capabilities are 'commentable', 'likable' and 'searchable'.
Support for threaded comments has been added. This feature needs to be enable in the site settings. To make this work changes have been made to comments related JavaScript and CSS. If you use specific styling or have custom features related to this feature you might need to give it some extra attention.
elgg_get_version()
useelgg_get_release()
get_user_by_code()
useelgg_get_user_by_persistent_token()
where you only need to provide the token, not the hashed token
'likes:is_likable', '<type>:<subtype>'
use$entity->hasCapability('likable')