doc_remove_callback
doc_remove_callback (doc, cbtype, callback)
Removes callback from the list of functions called when a document-level event occurs. If doc is invalid, or callback is not on the callback list for the document, $ERROR is set and 0 is returned. If successful, the function returns the unique document identifier.
The doc parameter is a document identifier. The cbtype parameter needs to be a valid callback type (valid callbacks are listed under the doc_add_callback function). The callback parameter specifies the actual callback to remove.
Example
$ret = doc_remove_callback($doc, "create", \
"main::DocCallback")
Refer to
Callback Functions introduction for helpful overview information.
Related Topics