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',
);