synonym-delete.tcl
Deletes a synonym
- Location:
- /packages/categories/www/cadmin/synonym-delete.tcl
- Author:
- Timo Hentschel <timo@timohentschel.de>
- CVS ID:
$Id: synonym-delete.tcl,v 1.6.2.2 2019/12/20 21:18:10 gustafn Exp $
Related Files
- packages/categories/www/cadmin/synonym-delete.xql
- packages/categories/www/cadmin/synonym-delete.tcl
- packages/categories/www/cadmin/synonym-delete.adp
[ hide source ] | [ make this the default ]
File Contents
ad_page_contract { Deletes a synonym @author Timo Hentschel (timo@timohentschel.de) @cvs-id $Id: synonym-delete.tcl,v 1.6.2.2 2019/12/20 21:18:10 gustafn Exp $ } { synonym_id:naturalnum,multiple category_id:naturalnum,notnull tree_id:naturalnum,notnull {locale:word ""} object_id:naturalnum,optional ctx_id:naturalnum,optional } -properties { page_title:onevalue context_bar:onevalue locale:onevalue delete_url:onevalue cancel_url:onevalue } set user_id [auth::require_login] permission::require_permission -object_id $tree_id -privilege category_tree_write set tree_name [category_tree::get_name $tree_id $locale] set category_name [category::get_name $category_id $locale] set page_title "Delete synonyms of category \"$tree_name :: $category_name\"" set context_bar [category::context_bar $tree_id $locale \ [expr {[info exists object_id] ? $object_id : ""}] \ [expr {[info exists ctx_id] ? $ctx_id : ""}]] lappend context_bar [list [export_vars -no_empty -base synonyms-view { category_id tree_id locale object_id ctx_id}] "Synonyms of $category_name"] "Delete synonyms" set delete_url [export_vars -no_empty -base synonym-delete-2 { synonym_id:multiple category_id tree_id locale object_id ctx_id}] set cancel_url [export_vars -no_empty -base synonyms-view { category_id tree_id locale object_id ctx_id}] db_multirow synonyms get_synonyms_to_delete "" template::list::create \ -name synonyms \ -no_data "None" \ -elements { synonym_name { label "Name" } language { label "Language" } } ad_return_template # Local variables: # mode: tcl # tcl-indent-level: 4 # indent-tabs-mode: nil # End: