I have developed one module with logic hook.
But some time later i've developed another one with logic hook as well.
And, as first module does, second module's logic hook also takes effect on the same modules.
So this means that for example my logic hook (1st and 2nd module's) should start before saving in Calls module, and that's why custom/modules/Calls/logic_hooks.php should contain:
What is the question? When I've installed 1st module there is now question, in manifest file I wrote:PHP Code:$hook_array['before_save'][] = Array(1, 'Call_hook', 'modules/InvolvedEmployees/logic_hook.php', 'LogicHook', 'before_save');
$hook_array['before_save'][] = Array(2, 'Call_hook', 'modules/PriceList/logic_hook.php', 'LogicHook', 'before_save');
But what should I write in 2nd module's manifest file, so that logic hook ($hook_array['before_save'][] = Array(2, 'Call_hook', 'modules/PriceList/logic_hook.php', 'LogicHook', 'before_save')PHP Code:...
'copy' => array( ...,
array('from' => '<basepath>/hooks/calls_logic_hooks.php',
'to' => 'custom/modules/Calls/logic_hooks.php',
),
),
...
was appended to existing file?


LinkBack URL
About LinkBacks
was appended to existing file?




Reply With Quote

Bookmarks