You are here

function taxonomy_menu_variable_get in Taxonomy menu 8

Same name and namespace in other branches
  1. 7.2 taxonomy_menu.module \taxonomy_menu_variable_get()

Helper function to replace Drupal's config for Taxonomy menu. Gets a value per vocabulary.

13 calls to taxonomy_menu_variable_get()
taxonomy_menu_custom_paths_form_taxonomy_vocabulary_form_alter in taxonomy_menu_custom_paths/taxonomy_menu_custom_paths.module
Implements hook_form_FORM_ID_alter().
taxonomy_menu_form_taxonomy_form_vocabulary in ./taxonomy_menu.admin.inc
Form constructor for the vocabulary editing form. We add our taxonomy_menu settings in here on a per-vocabulary basis.
taxonomy_menu_items_rebuild in ./taxonomy_menu.module
Rebuilds all the menu items.
taxonomy_menu_menu_links_insert in ./taxonomy_menu.module
Inserts menu links associated to a vocabulary.
taxonomy_menu_menu_links_update in ./taxonomy_menu.module
Updates menu links associated to a vocabulary.

... See full list

File

./taxonomy_menu.module, line 661
Generates menu links for all selected taxonomy terms.

Code

function taxonomy_menu_variable_get($key, $vid, $default) {
  $config = \Drupal::config('taxonomy_menu.settings')
    ->get(_taxonomy_menu_build_variable($key, $vid));
  if (isset($config)) {
    return $config;
  }
  return $default;
}