Documentation

UnRegisterModuleDependences

UnRegisterModuleDependences(
 string from_module_id,
 string MESSAGE_ID,
 string to_module_id,
 string to_class = "",
 string to_method = "",
 string TO_PATH="",
 array TO_METHOD_ARG = array()
);

The function unregisters an event handler.

Equivalent to the method in the new core: Bitrix\Main\EventManager::unRegisterEventHandler.

Function parameters

ParameterDescription Available from version
from_module_id The ID of module that initiates the event.
MESSAGE_ID The event ID.
to_module_id The ID of module containing the event handler.
to_class Class of the module, which method is the event handler.
Optional parameter. By default - "".
to_method Method of the to_class that is the event handier.
Optional parameter. By default - "".
TO_PATH Optional parameter, empty by default.
TO_METHOD_ARG Array of arguments for the event handler.
Optional parameter.

See Also

  • RegisterModuleDependences

    Examples of use

    <?
    UnRegisterModuleDependences("main", "OnUserDelete", "forum", "CForum", "OnUserDelete");
    ?>


  • © «Bitrix24», 2001-2024