You are here

function facetapi_test_facetapi_translate_string in Facet API 7

Same name and namespace in other branches
  1. 7.2 tests/facetapi_test.module \facetapi_test_facetapi_translate_string()

Implements hook_facetapi_translate_string().

Returns a serialized array for testing.

File

tests/facetapi_test.module, line 82
Provides a test adapter and plugins.

Code

function facetapi_test_facetapi_translate_string($name, $string, $langcode = NULL) {
  return serialize(array(
    'name' => $name,
    'string' => $string,
    'langcode' => (string) $langcode,
    'return' => 'translated',
  ));
}