I'm trying to work out what PHP code I'd need to make a stream entry on a closed group page.... I know the user would be logged in.
There's a RSForm Module on the Group page which is capable of triggering any custom PHP code when it's completed.... so knowing that the Group page would be open, and the User logged in when the form was completed, I'm trying to get the right EasySocial PHP code to add to the activity stream of that group... "User XYZ added a ZZZ record"...
(User XYZ would be the logged in user, 'added a record' would just be my custom text with 'ZZZ' being a variable I can introduce with PHP $something).
Sorry I did try and work this out from the documentation... but got lost by this first sentence as I don't have my own extension nor do I know what CRUD is!?!
Creating a stream record should be done within your own extension. Ideally, it should be placed in a central location where CRUD happens.