function mobile_tools_get_module_names in Mobile Tools 6.2
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_get_module_names()
- 6.3 mobile_tools.admin.inc \mobile_tools_get_module_names()
- 6 mobile_tools.admin.inc \mobile_tools_get_module_names()
- 7.2 mobile_tools.admin.inc \mobile_tools_get_module_names()
Return the human readable name of the modules
1 call to mobile_tools_get_module_names()
- mobile_tools_external_modules_configuration_form in ./
mobile_tools.admin.inc - Configuration of external modules
File
- ./
mobile_tools.admin.inc, line 347 - Generate configuration form and save settings.
Code
function mobile_tools_get_module_names($modules) {
$output = array();
foreach ($modules as $module_key => $module_value) {
$query = "SELECT * FROM {system} WHERE type = '%s' AND name = '%s'";
$result = db_query($query, 'module', $module_value);
$item = db_fetch_object($result);
$info = $item->info;
$info = unserialize($info);
$output[$module_value] = $info['name'];
}
return $output;
}