ok then you have to create a new tcl-script and include that in your menu.
e.g.
proc HideInputs {} {
foreach cur_node [selected_nodes] {
knob $cur_node.hide_input !$cur_node.hide_input
}
}
and in your menu.tcl :
menu "Edit/hide inputs" "#+T" HideInputs
I havent checked it but it should work