toolkit; /* @var $toolkit kInstallToolkit */ } $application =& kApplication::Instance(); $application->Init(); if ($application->RecallVar('user_id') != -1) { die('restricted access!'); } $category =& $toolkit->createModuleCategory('Forums', 'Discussion Forums', '/in-bulletin/designs/section', 'in-bulletin/img/menu_topics.gif'); $toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); $toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{TopicCatId}', $category->GetID()); $toolkit->ImportLanguage('/' . $module_folder . '/install/english'); $toolkit->SetModuleRootCategory($module_folder, $category->GetID()); // $toolkit->linkCustomFields($module_folder, 'bb', 3); // to create Custom Fields for Topics $toolkit->linkCustomFields('KERNEL', 'c', 1); // to create ItemTemplate custom field $toolkit->setModuleItemTemplate($category, 'bb', 'in-bulletin/topics/topic_detail'); $toolkit->finalizeModuleInstall($module_folder, true);