news::markdown_image::discard_attached_draft (private)
news::markdown_image::discard_attached_draft item_id image_id path
Defined in packages/news/tcl/markdown-image-procs.tcl
Remove the draft after the article and attachment have committed.
- Parameters:
- item_id (required)
- image_id (required)
- path (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {[db_string news_markdown_image_committed { select 1 from attachments where object_id = :item_id and item_id = :image_id } -default 0]} { file delete -- $path }XQL Not present: Generic, PostgreSQL, Oracle