function taxonomy_menu_group_form_submit in Taxonomy menu 6.3
Submit Handler for taxonomy_menu_group_form
File
- ./
taxonomy_menu.admin.inc, line 268 - admin section for taxonomy menu
Code
function taxonomy_menu_group_form_submit($form, &$form_state) {
$menu_group = array(
'path' => $form_state['values']['path'],
'name' => $form_state['values']['menu_group_name'],
'parent_menu' => $form_state['values']['parent_menu_item'],
'mgid' => $form_state['values']['mgid'],
);
//save group settings
taxonomy_menu_save_menu_group($menu_group);
//save path options
if ($form_state['values']['path_options']) {
_taxonomy_menu_save_options('PATH', $form_state['values']['path_options'], $menu_group['mgid']);
}
//save menu group options
if ($form_state['values']['group_options']) {
_taxonomy_menu_save_options('GROUP', $form_state['values']['group_options'], $menu_group['mgid']);
}
$form_state['redirect'] = 'admin/build/taxonomy_menu/group/' . $menu_group['mgid'] . '/edit';
}