function taxonomy_menu_variable_set in Taxonomy menu 8
Same name and namespace in other branches
- 7.2 taxonomy_menu.module \taxonomy_menu_variable_set()
Helper function to replace Drupal's config for Taxonomy menu. Sets a value per vocabulary.
1 call to taxonomy_menu_variable_set()
- _taxonomy_menu_save_form_settings in ./
taxonomy_menu.admin.inc - Helper function, which recursively saves all the submitted settings values of a form.
File
- ./
taxonomy_menu.module, line 674 - Generates menu links for all selected taxonomy terms.
Code
function taxonomy_menu_variable_set($key, $vid, $value) {
Drupal::config('taxonomy_menu.settings')
->set(_taxonomy_menu_build_variable($key, $vid), $value)
->save();
}