How to register custom workflow when importing module? #55
-
Hello, I have this PHP code for registering a custom workflow, which I found from other user discussions: <?php
require_once 'modules/com_vtiger_workflow/VTEntityMethodManager.php';
$emm = new VTEntityMethodManager();
$emm->addEntityMethod('MyModule', 'getInvoiceAndPost', 'modules/MyModule/workflows/myCustomWorkflow.php', 'MyWorkflowClass');
?> Is there a way to run this code for registering a custom workflow when I import my module from a .zip file? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
rskrzypczak
Nov 8, 2024
Replies: 1 comment 2 replies
-
Of course it is. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Enitoxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course it is.
just add it to the
moduleHandler
function in the main module file (MyModule.php).