Bitrix Site Manager

UnRegisterModuleDependences

UnRegisterModuleDependences(
 string from_module_id,
 string event_id,
 string to_module_id,
 string to_class = "",
 string to_method = ""
)

The function UnRegisterModuleDependences unregisters an event handler.

Parameters

ParameterDescription
from_module_id The ID of the module whose events are processed.
event_id The event ID.
to_module_id The ID of the module containing an event handler.
to_class Name of a class from the module, whose method is the event handler.
Optional. The default value is "".
to_method Method of a class to_class which is the event handler itself.
Optional. The default value is "".

See Also

Example



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