1 views_plugin_localization.inc | public views_plugin_localization::invoke_translation_process(&$value, $op) |
Invoke hook_translation_pre_process() or hook_translation_post_process().
Like node_invoke_nodeapi(), this function is needed to enable both passing by reference and fetching return values.
File
- core/
modules/ views/ plugins/ views_plugin_localization.inc, line 115 - Definition of views_plugin_localization.
Class
- views_plugin_localization
- The base plugin to handle localization of Views strings.
Code
public function invoke_translation_process(&$value, $op) {
$return = array();
$hook = 'translation_' . $op . '_process';
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$result = $function($value);
if (isset($result)) {
$return[$module] = $result;
}
}
return $return;
}