diff -u b/modules/search/search.api.php b/modules/search/search.api.php --- b/modules/search/search.api.php +++ b/modules/search/search.api.php @@ -31,19 +31,25 @@ * @return * Array with optional keys: * - title: Title for the tab on the search page for this module. Defaults - * to the module name if not given. Should be untranslatable, but in case of - * need, should be passed through the t() function. + * to the module name if not given. Must be untranslated, but in case of + * need, make use of 'translated_title' element. * - path: Path component after 'search/' for searching with this module. * Defaults to the module name if not given. * - conditions_callback: An implementation of callback_search_conditions(). + * - translated_title: Translated title in case the 'title' element needs to + * be translated. * * @ingroup search */ function hook_search_info() { + // In case the 'title' element needs translation, return the following one. + $translated_title = t('Content'); + return array( - 'title' => t('Content'), + 'title' => 'Content', 'path' => 'node', 'conditions_callback' => 'callback_search_conditions', + 'translated_title' => $translated_title, ); }