function sbp_test_preprocess_search_result in Search by Page 7
Implements MODULE_preprocess_HOOK() for search-result.tpl.php.
Makes sure the 'type' is displayed, so that the internationalization test can verify it's translated.
File
- tests/
sbp_test.module, line 357 - Module file for Search by Page testing.
Code
function sbp_test_preprocess_search_result(&$variables) {
if (isset($variables['result']['type'])) {
$variables['info_split']['type'] = check_plain($variables['result']['type']);
$variables['info'] = implode(' - ', $variables['info_split']);
}
}