Arbortext Command Language > Hooks > postimporthook
  
postimporthook
postimporthook
Function prototype:
hook(doc)
Synopsis
Use with:
add_hook(hookname, func[, prepend])
remove_hook(hookname, func)
where hookname is postimporthook.
The post import hook is called after the document has been successfully imported, but before the document is displayed in a window (if not batch mode). The input parameter is the document identifier of the imported document. The hook is not called if the import operation fails. If the hook returns -1, the document will not be displayed in a window (if not batch mode). It is the application's responsibility to close the document in this case.
Argument
doc is the document identifier of the resulting document.