Exemplo n.º 1
0
 /**
  * Installs all of module templates $module specify. This function is
  * usefull for installer and updater. In the case of updater, you should
  * uninstall all of module templates before this function.
  * 
  * This function gets informations about templates from xoops_version.
  * 
  * @warning
  * 
  * This function depends the specific spec of Legacy_RenderSystem, but this
  * static function is needed by the 2nd installer of Legacy System.
  * 
  * @static
  * @param XoopsModule $module
  * @param Legacy_ModuleInstallLog $log
  * @note FOR THE CUSTOM-INSTALLER
  * @see Legacy_ModuleInstallUtils::uninstallAllOfModuleTemplates()
  */
 function installAllOfModuleTemplates(&$module, &$log)
 {
     $templates = $module->getInfo('templates');
     if ($templates != false) {
         foreach ($templates as $template) {
             Legacy_ModuleInstallUtils::installModuleTemplate($module, $template, $log);
         }
     }
 }