You are here

function lingotek_utility_router in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_utility_router()
  2. 7.6 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 1788
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("Utility not callable: " . $callback, 'error');
  }
}