function _taxonomy_menu_admin_submit in Taxonomy menu 6
Admin area. Configure the module, setting which vocabularies will be converted into menus items
File
- ./
taxonomy_menu.inc, line 105 - @author Jonathan Chaffer <jchaffer@structureinteractive.com> @author Bruno Massa <http://drupal.org/user/67164> taxonomy_menu.inc It Generates menu links for all taxonomy terms
Code
function _taxonomy_menu_admin_submit($form, &$form_state) {
// Save these options
variable_set('taxonomy_menu_display_page', $form_state['values']['taxonomy_menu_display_page']);
variable_set('taxonomy_menu_display_num', $form_state['values']['taxonomy_menu_display_num']);
variable_set('taxonomy_menu_hide_empty', $form_state['values']['taxonomy_menu_hide_empty']);
variable_set('taxonomy_menu_display_descendants', $form_state['values']['taxonomy_menu_display_descendants']);
// Save which category should be displayed on menu
// and save which views it should use, in case Views
// mode is selected
foreach (taxonomy_get_vocabularies() as $vocab) {
variable_set('taxonomy_menu_show_' . $vocab->vid, $form_state['values']['taxonomy_menu_show_' . $vocab->vid]);
variable_set('taxonomy_menu_show_views_' . $vocab->vid, $form_state['values']['taxonomy_menu_show_views_' . $vocab->vid]);
}
// Rebuild the menu to include these features
menu_rebuild();
}