Bitrix Site Manager

CModule::IncludeModule

bool
CModule::IncludeModule(
 string module_id
)

The method IncludeModule checks whether the module is installed and if so, includes it (namely, includes file /bitrix/modules/module ID/include.php). Returns true on success, false otherwise. 

Parameters

ParameterDescription
module_id Module ID.

See Also

Example



<?
//  check whether the Information blocks module is installed and if so, include it
if (CModule::IncludeModule("iblock")):
    // call the Information blocks module functions here
    ...
endif;
?>