function _custom_breadcrumbs_taxonomy_tt in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.inc \_custom_breadcrumbs_taxonomy_tt()
Translates configurable string when i18n_string module is installed.
Parameters
string $name: The name of the string.
string $default: String in default language.
string $langcode: The language code for translation if not the one used for the page.
Return value
string The translated string if possible, or the original string if not.
2 calls to _custom_breadcrumbs_taxonomy_tt()
- _custom_breadcrumbs_taxonomy_term_trail in custom_breadcrumbs_taxonomy/
custom_breadcrumbs_taxonomy.inc - Generates the taxonomy term trail.
- _custom_breadcrumbs_taxonomy_vocabulary_trail in custom_breadcrumbs_taxonomy/
custom_breadcrumbs_taxonomy.inc - Generates the vocabulary trail.
File
- custom_breadcrumbs_taxonomy/
custom_breadcrumbs_taxonomy.inc, line 313 - Helper functions for custom_breadcrumbs_taxonomy.
Code
function _custom_breadcrumbs_taxonomy_tt($name, $default, $langcode = NULL) {
return module_exists('i18n_string') ? i18n_string($name, $default, array(
'langcode' => $langcode,
)) : $default;
}