function responsive_menu_overview_form_submit in Responsive and off-canvas menu 7.3
Same name and namespace in other branches
- 7 responsive_menu.module \responsive_menu_overview_form_submit()
- 7.2 responsive_menu.module \responsive_menu_overview_form_submit()
Submit handler to store fly-out variables.
1 string reference to 'responsive_menu_overview_form_submit'
File
- ./
responsive_menu.module, line 47
Code
function responsive_menu_overview_form_submit($form, &$form_state) {
foreach ($form_state['values'] as $key => $value) {
if (strpos($key, 'mlid') !== FALSE) {
if (!empty($value['flyleft'])) {
// Store a variable for this menu item.
variable_set('responsive_menu_flyleft_' . $key, TRUE);
}
else {
// Remove any possible old variables.
variable_del('responsive_menu_flyleft_' . $key);
}
}
}
}