Invoking View function from another View handler
Jamroom Developers
Creation of most submitted forms is handled in a function of the same name but with _save() at the end. Its in those functions that the logic of creating what was submitted takes place.
Most of the logic in the view_jrComment_comment_save function/view revolves around figuring out which module to store the comment as a comment of. Probably in your view handler that will be simpler I suspect because you're going to have more specific parameters.
Once the parameters are figured this function is doing the saving:
$id = jrCore_db_create_item('jrComment', $_tmp, array('_profile_id' => jrUser_get_profile_home_key('_profile_id')));
I think I'd be looking to figure out what the structure of the comment I wanted to arrive was then just create it in the datastore directly in my function.
The rest of the view_jrComment_comment_save figures out who to notify now that there is a new comment.