public function setLegacyViewdefs()
 {
     global $current_language;
     $GLOBALS['mod_strings'] = return_module_language($current_language, $this->module);
     SugarACL::setACL($this->module, array(new SidecarMenuMetaDataUpgraderACL()));
     $module_menu = null;
     include $this->fullpath;
     if ($this->basename === 'globalControlLinks') {
         if (isset($global_control_links)) {
             $module_menu = $global_control_links;
             $this->deleteOld = false;
         }
     }
     SugarACL::resetACLs($this->module);
     $this->legacyViewdefs = $module_menu;
 }