Bitrix Site Manager

GetModuleID

string
GetModuleID(
 string path
)

The function GetModuleID returns the identifier of the module to which the specified file belongs.

Parameters

ParameterDescription
path Path to a file in /bitrix/modules/.

Example



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