Documentation

IncludeModule

bool
CModule::IncludeModule(
 string module_name
)

The method 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. ). Static method.

Parameters

ParameterDescription
module_name Module ID.

See Also

Examples of use

<?
// 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;
?>


© «Bitrix24», 2001-2024