You are here

function taxonomy_page_title_settings in Page Title 8.2

Same name and namespace in other branches
  1. 6.2 modules/taxonomy.page_title.inc \taxonomy_page_title_settings()
  2. 7.2 modules/taxonomy.page_title.inc \taxonomy_page_title_settings()

Implements hook_page_title_settings().

File

modules/taxonomy.page_title.inc, line 42
Taxonomy implementations of the page title hooks

Code

function taxonomy_page_title_settings() {
  $settings = array();
  $vocabs = taxonomy_get_vocabularies();
  foreach ($vocabs as $vocab) {
    $settings['page_title_vocab_' . $vocab->machine_name] = array(
      'label' => 'Vocabulary - %vocab_name',
      'label arguments' => array(
        '%vocab_name' => $vocab->name,
      ),
      'scopes' => array(
        'global',
        'term',
        'vocabulary',
      ),
      'show field' => TRUE,
      'description' => 'This pattern will be used for all %vocab_name term pages',
      'description arguments' => array(
        '%vocab_name' => $vocab->name,
      ),
    );
  }
  return $settings;
}