コード例 #1
0
 /**
  * installAllOfBlocks
  * 
  * @param	XoopsModule  &$module
  * @param	Legacy_ModuleInstallLog  &$log
  * 
  * @return	bool
  **/
 public static function installAllOfBlocks(&$module, &$log)
 {
     $blocks =& $module->getInfo('blocks');
     if (is_array($blocks) && count($blocks) > 0) {
         foreach ($blocks as $block) {
             $newBlock =& Xcck_InstallUtils::createBlockByInfo($module, $block);
             Xcck_InstallUtils::installBlock($module, $newBlock, $block, $log);
         }
     }
     return true;
 }