You are here

function taxonomy_title_get_settings in Taxonomy Title 6

Helper function: sets all default usage to ON.

1 call to taxonomy_title_get_settings()
taxonomy_title_preprocess_page in ./taxonomy_title.module
Implementation of hook_preprocess_page().

File

./taxonomy_title.module, line 196
Enhanced control over the heading tag for the taxonomy term list pages.

Code

function taxonomy_title_get_settings() {
  $vocabs = taxonomy_get_vocabularies();
  $heading_defaults = variable_get('taxonomy_title_headings', array());
  $page_title_defaults = variable_get('taxonomy_title_page_titles', array());
  foreach ($vocabs as $vid => $vocab) {
    if (!isset($heading_defaults[$vid])) {
      $heading_defaults[$vid] = $vid;
    }
    if (!isset($page_title_defaults[$vid])) {
      $page_title_defaults[$vid] = $vid;
    }
  }
  $settings = array(
    'taxonomy_title_headings' => $heading_defaults,
    'taxonomy_title_page_titles' => $page_title_defaults,
  );
  return $settings;
}