Arbortext Command Language > Callbacks > doc_add_callback > insert_tag_auto Callback Type
  
insert_tag_auto Callback Type
Function prototype:
function funcname (doc, oids[], op)
The insert_tag_auto callback is called after tags are automatically inserted when context checking adds required tags, or if auto insertions are specified by the InsertAroundToFix, InsertAutoNested, and InsertAutoHeading categories in the DCF file for the document type.
This function is called after the document is valid and all the changes are applied by the insert_tag, insert_string, newline, read, paste, and split commands and by the insert and insert_tag functions. This function is called before the insert_tag_after callback is called by the insert_tag command and function.
Arguments
doc is the identifier of the document associated with this function.
oids is an array of object identifiers of the start tags that were automatically inserted, in the order they were inserted into the document.
op is the function callback operation. op is called twice in succession (op = 1 and op = 2) as is the convention with these callback types, but because the tag insertion has already occurred, it cannot cancel the operation.