示例#1
0
 /**
  * Invoked when special actions are performed on the module.
  * @param String Module name
  * @param String Event Type (module.postinstall, module.disabled, module.enabled, module.preuninstall)
  */
 function vtlib_handler($modulename, $event_type)
 {
     parent::vtlib_handler($modulename, $event_type);
     if ($event_type == 'module.postinstall') {
         self::addWidgetTo(array('Leads', 'Contacts', 'Accounts'));
         global $adb;
         // Mark the module as Standard module
         $adb->pquery('UPDATE vtiger_tab SET customized=0 WHERE name=?', array($modulename));
     }
 }
示例#2
0
 /**
  * Invoked when special actions are performed on the module.
  * @param String Module name
  * @param String Event Type (module.postinstall, module.disabled, module.enabled, module.preuninstall)
  */
 function vtlib_handler($modulename, $event_type)
 {
     parent::vtlib_handler($modulename, $event_type);
     if ($event_type == 'module.postinstall') {
         self::addWidgetTo(array('Leads', 'Contacts', 'Accounts', 'Project', 'ProjectTask'));
         $adb = PearDatabase::getInstance();
         // Mark the module as Standard module
         $adb->pquery('UPDATE vtiger_tab SET customized=0 WHERE name=?', array($modulename));
     } elseif ($event_type == 'module.postupdate') {
     }
 }