function context_reaction_menu::options_form_submit in Context 7.3
Same name and namespace in other branches
- 6.3 plugins/context_reaction_menu.inc \context_reaction_menu::options_form_submit()
- 6 plugins/context_reaction_menu.inc \context_reaction_menu::options_form_submit()
Override of options_form_submit(). Trim any identifier padding for non-unique path menu items.
Overrides context_reaction::options_form_submit
File
- plugins/
context_reaction_menu.inc, line 48
Class
- context_reaction_menu
- Expose menu items as context reactions.
Code
function options_form_submit($values) {
$trimmed = array();
foreach ($values as $value) {
$value = trim($value, "'");
$trimmed[] = $value;
}
return $trimmed;
}