delete.tcl

Location:
/packages/acs-subsite/www/admin/site-map/delete.tcl
Author:
rhs@mit.edu
Created:
2000-09-09
CVS ID:
$Id: delete.tcl,v 1.8.2.1 2024/08/05 14:12:41 gustafn Exp $

Related Files

[ hide source ] | [ make this the default ]

File Contents

ad_page_contract {

    @author rhs@mit.edu
    @creation-date 2000-09-09
    @cvs-id $Id: delete.tcl,v 1.8.2.1 2024/08/05 14:12:41 gustafn Exp $

} {
    expand:integer,multiple
    node_id:naturalnum,notnull
    {root_id:naturalnum ""}
}

if {$root_id == $node_id} {
    set root_id [site_node::get_parent_id -node_id $node_id]
}

site_node::delete -node_id $node_id

ad_returnredirect [export_vars -base . {expand:multiple root_id}]
ad_script_abort

# Local variables:
#    mode: tcl
#    tcl-indent-level: 4
#    indent-tabs-mode: nil
# End: