Skip to content

hypeJunction/Elgg-actions_feature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feature Action for Elgg

Elgg 1.11 Elgg 1.12

Features

  • Standardized API for featuring items

Usage

  • Register your type
elgg_register_plugin_hook_handler('feature', 'object:my_type', 'Elgg\Values::getTrue');
  • Manage permissions

By default, only admins can feature/unfeature items. If you need to change that behaviour, use 'permissions_check:feature',$entity_type hook.

  • Notifications/River items

If you need to notify the owner, or create a river item, listen to 'featured',$entity_type and 'unfeatured',$entity_type events.

About

Generic API for featuring items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published