[Vtigercrm-developers] Code to add a comment

Estefan Civera estefan.civera at gmail.com
Thu Aug 27 06:30:22 GMT 2015


Hi this code add comment to your custom or not module!!

$moduleName = 'YOUR MODULE NAME';

$modcommentsModuleInstance = Vtiger_Module::getInstance('ModComments');
if ($modcommentsModuleInstance &&
file_exists('modules/ModComments/ModComments.php')) {
    include_once 'modules/ModComments/ModComments.php';
    if (class_exists('ModComments'))
        ModComments::addWidgetTo(array($moduleName));
}



-----
Ing. Estefan Civera
Vtiger developer and consultant
http://www.estefancivera.net
Italy
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Code-to-add-a-comment-tp17181p17185.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.


More information about the vtigercrm-developers mailing list