You are here

function lingotek_get_module_info in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_get_module_info()
  2. 7.2 lingotek.util.inc \lingotek_get_module_info()
  3. 7.3 lingotek.util.inc \lingotek_get_module_info()
  4. 7.4 lingotek.util.inc \lingotek_get_module_info()
  5. 7.5 lingotek.util.inc \lingotek_get_module_info()
1 call to lingotek_get_module_info()
lingotek_get_dashboard_code in ./lingotek.dashboard.inc
Generates the code for the embedded Javascript dashboard.

File

./lingotek.util.inc, line 1014
Utility functions.

Code

function lingotek_get_module_info($field = NULL) {
  $result = db_query("SELECT info FROM {system} WHERE type = :type AND name = :name", array(
    ':type' => 'module',
    ':name' => 'lingotek',
  ))
    ->fetchObject();
  $info = unserialize(current($result));
  return is_null($field) ? $info : (isset($info[$field]) ? $info[$field] : NULL);
}