Exemple #1
0
 function removeModules()
 {
     global $log;
     $log->debug("Entering YetiForceUpdate::removeModules() method ...");
     $removeModules = ['OSSMenuManager' => ['table_list' => ['vtiger_ossmenumanager'], 'supported_languages' => ['en_us', 'pl_pl', 'de_de', 'pt_br', 'ru_ru'], 'tabid' => getTabid('OSSMenuManager')]];
     foreach ($removeModules as $moduleName => $removeModule) {
         if (!self::checkModuleExists($moduleName)) {
             continue;
         }
         $moduleInstance = Vtiger_Module::getInstance($moduleName);
         $moduleInstance->delete();
         $obiekt = new RemoveModule($moduleName);
         foreach ($removeModule as $key => $value) {
             $obiekt->{$key} = $value;
         }
         $obiekt->DeleteAll();
     }
     $log->debug("Exiting YetiForceUpdate::removeModules() method ...");
 }
 public function removeModules()
 {
     global $log, $adb;
     $log->debug("Entering VT620_to_YT::removeModules() method ...");
     $removeModules = array('EmailTemplates' => array('tabid' => getTabid('EmailTemplates')), 'Webmails' => array('tabid' => getTabid('Webmails')), 'FieldFormulas' => array('tabid' => getTabid('FieldFormulas')), 'Google' => array('added_links' => array(array('type' => 'DETAILVIEWSIDEBARWIDGET', 'label' => 'Google Map'), array('type' => 'LISTVIEWSIDEBARWIDGET', 'label' => 'Google Contacts'), array('type' => 'LISTVIEWSIDEBARWIDGET', 'label' => 'Google Calendar')), 'tabid' => getTabid('Google')), 'ExtensionStore' => array('tabid' => getTabid('ExtensionStore')));
     foreach ($removeModules as $moduleName => $removeModule) {
         if (!self::checkModuleExists($moduleName)) {
             continue;
         }
         $moduleInstance = Vtiger_Module::getInstance($moduleName);
         $moduleInstance->delete();
         $obiekt = new RemoveModule($moduleName);
         foreach ($removeModule as $key => $value) {
             $obiekt->{$key} = $value;
         }
         $obiekt->DeleteAll();
     }
     $log->debug("Exiting VT620_to_YT::removeModules() method ...");
 }