function i18nstrings_title_callback in Internationalization 6
Callback for menu title translation.
Parameters
$name: String id
$string: Default string, title in default language
$callback: Aditional callback to be run after this one
1 string reference to 'i18nstrings_title_callback'
- i18ncontent_menu_alter in i18ncontent/
i18ncontent.module - Implementation of hook_menu_alter().
File
- i18nstrings/
i18nstrings.module, line 948 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_title_callback($name, $string, $callback = NULL) {
$string = i18nstrings($name, $string);
if ($callback) {
$string = $callback($string);
}
return $string;
}