proc eval_plugins {hook} { foreach plugin [glob -nocomplain /mod/webif/plugin/*] { if {[file isfile "$plugin/$hook.hook"]} { catch {uplevel source "$plugin/$hook.hook"} } } }