AnsweredAssumed Answered

Subpanel create dosent trigger hook

Question asked by Aravind Kumar on Jul 28, 2017
Latest reply on Jul 30, 2017 by hats

I am working in hook. When I create a record from subpanel it dosent trigger the hook. But when I use `link existing record` the hook is executing. Which hook should we use when `create` from subpanel.

 

$hook_array['after_relationship_add'][] = array(
    1,
    'after relationship hook',
    'custom/modules/Records/Hooks/LinkedRecord.php',
    'Records_Hooks_LinkedRecord',
    'linkedRecords',
);

Outcomes