content::keyword::item_unassign_children (public)

 content::keyword::item_unassign_children -item_id item_id \
    -parent_id parent_id

Defined in packages/acs-content-repository/tcl/content-keyword-procs.tcl

Unassign all the keywords attached to a content item that are children of keyword parent_id. Returns the supplied item_id for convenience.

Switches:
-item_id (required)
-parent_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 content::keyword::delete content::keyword::delete (public) db_dml db_dml (public) content::keyword::item_unassign_children content::keyword::item_unassign_children content::keyword::item_unassign_children->content::keyword::delete content::keyword::item_unassign_children->db_dml

Testcases:
No testcase defined.
Source code:
    db_dml item_unassign_children {
    delete from cr_item_keyword_map
    where item_id = :item_id
    and   keyword_id in (select p.keyword_id
                         from   cr_keywords p
                         where  p.parent_id = :parent_id)
    }
    return $item_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: