#2453 closed Enhancement (duplicate)
river create trigger enhancement
| Reported by: | skanan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.0 |
| Component: | Core | Version: | 1.7 |
| Severity: | minor | Keywords: | |
| Cc: | brettp | Difficulty: |
Description
It is very useful to be able to control the injection of river content. For entities this can be done by hooking into a trigger, but river functions do not have this facility:
The following additional code to the add_to_river function would resolve this problem:
if ( !trigger_elgg_event( 'create', "river", $object ) ) {
return false;
}
This should be added immediately after the line:
if (!($object = get_entity($object_guid))) return false;
Change History (2)
comment:1 Changed 3 years ago by cash
- Resolution set to duplicate
- Status changed from new to closed
comment:2 Changed 3 years ago by skanan
perfect!
Note: See
TracTickets for help on using
tickets.

Thanks for the ticket. This turns out to be a duplicate of [svn:2402]. I'm planning to use a plugin hook rather than an event because it would also support a plugin changing the river entry. Haven't implemented it yet so we'll see how it works.