function uc_catalog_page_title_pattern_alter in Page Title 8.2
Same name and namespace in other branches
- 6.2 modules/uc_catalog.page_title.inc \uc_catalog_page_title_pattern_alter()
- 7.2 modules/uc_catalog.page_title.inc \uc_catalog_page_title_pattern_alter()
Implements hook_page_title_pattern_alter().
File
- modules/
uc_catalog.page_title.inc, line 37 - Ubercart Catalog implementations of the page title hooks
Code
function uc_catalog_page_title_pattern_alter(&$pattern, &$types) {
$menu_item = menu_get_item();
// Ubercart Catalog Term Page
if (!strncmp($menu_item['path'], 'catalog', 7) && isset($menu_item['page_arguments'][0]) && ($term = taxonomy_term_load($menu_item['page_arguments'][0]))) {
$types['term'] = $term;
$pattern = variable_get('page_title_uc_catalog_' . $types['term']->vid, '');
}
}