Arbortext Command Language > Callbacks > doc_add_callback > delete_tag Callback Type
  
delete_tag Callback Type
Function prototype:
function funcname (doc, tagname, oid, op)
delete_tag is called before a Delete Markup operation is done in the Edit window.
Arguments
doc is the identifier of the document in which the Delete Markup was attempted and can be used to derive the cursor position and/or the selected region.
tagname is the name of the tag that will be deleted (generally, to the left of the caret position).
* 
If the document type definition for your document instance includes the NAMECASE GENERAL NO setting, then the tagname parameter will be case-sensitive.
oid is the object identifier of the element to be deleted.
op is the function callback operation. Callbacks are called twice in succession with op specifying the stage of callback operation.
1. op == 1 first call — The returned argument specifies whether the execution should continue or be stopped:
0 — Continue callback processing.
-1 — Stop further callback processing.
2. op == 2 second call — Occurs unless the processing was stopped during the first call. The returned argument allows or prevents basic Arbortext Editor processing after all callbacks have been called:
0 — Basic Arbortext Editor processing allowed.
-1 — Basic Arbortext Editor processing prevented.