xowiki::filter_option_list (public)
xowiki::filter_option_list option_list except
Defined in packages/xowiki/tcl/xowiki-utility-procs.tcl
Process an option list (pairs of label and id) suitable to be passed to several widgets and remove all entries having an id from the except list.
- Parameters:
- option_list - list of labels and ids
except - list of internal ids
- Returns:
- filtered option list
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- api_filter_option_list
Source code: if {[llength $except] == 0} { return $option_list } return [lmap tuple $option_list { if {[lindex $tuple 1] in $except} { continue } set _ $tuple }]XQL Not present: Generic, PostgreSQL, Oracle