Arbortext Command Language > Hooks > doc_create_hook
  
doc_create_hook
doc_create_hook
This hook is invoked whenever a document is created, such as when opening a document. This hook can be used with Arbortext Publishing Engine applications where running code in advance of a publishing run is difficult.
The following code gives an example of using this hook.
package myapp;
function doc_create_hook(doc)
{
response(doc_path(doc));
$ no return value is expected
}
add_hook("doccreatehook", "myapp::doc_create_hook")