Documentation

GetModuleID

string
GetModuleID(
 string path
);

The function returns the module ID, to which the specified file belongs to.

Function parameters

ParameterDescription
path Path to file, located in /bitrix/modules/.

Examples of use

<?
echo GetModuleID("/bitrix/modules/main/include.php"); // main
?>


© «Bitrix24», 2001-2024
Up