function lingotek_get_module_info in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_get_module_info()
- 7.2 lingotek.util.inc \lingotek_get_module_info()
- 7.3 lingotek.util.inc \lingotek_get_module_info()
- 7.4 lingotek.util.inc \lingotek_get_module_info()
- 7.6 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 982 - 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);
}