Arbortext Command Language > Callbacks > userule_add_callback
  
userule_add_callback
userule_add_callback (docid, userule, userule_func)
This function registers userules for document types. userule_add_callback is called when the specified userule(s) and document type(s) need processing. userule_add_callback returns 0 if successful. The function returns -1 on registration failure.
The current registration of (docid, userule, userule_func) overrides any existing registration.
docid — The document identier of a document using the document type. Setting docid to 0 registers the userule for all document types.
userule — The userule number. Setting userule to 0 registers all userules for the document type. Setting userule to a value greater than 2 specifies a particular userule.
userule_func — The userule function.
Related Topics
userule_remove_callback function