function lingotek_utility_router in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_utility_router()
- 7.5 lingotek.util.inc \lingotek_utility_router()
1 string reference to 'lingotek_utility_router'
- lingotek_menu in ./
lingotek.module - Implements hook_menu().
File
- ./
lingotek.util.inc, line 1884 - Utility functions.
Code
function lingotek_utility_router($method, $params = array()) {
$callback = "lingotek_" . $method;
if (is_callable($callback)) {
call_user_func($callback);
}
else {
return drupal_set_message(filter_xss(t("Utility not callable: @callback", array(
'@callback' => $callback,
))), 'error');
}
}