function fp_get_module_details
Search API
7.x misc.inc | fp_get_module_details($module) |
6.x misc.inc | fp_get_module_details($module) |
4.x misc.inc | fp_get_module_details($module) |
5.x misc.inc | fp_get_module_details($module) |
Simply returns the module's row from the modules table, if it exists.
Parameters
unknown_type $module:
1 call to fp_get_module_details()
- update_status_status in modules/
update_status/ update_status.module - Implementation of hook_status.
File
- includes/
misc.inc, line 1217 - This file contains misc functions for FlightPath
Code
function fp_get_module_details($module) {
// Special case if we are looking up flightpath itself
if ($module == "flightpath") {
$rtn = array(
"info" => array("name" => t("FlightPath (Core)")),
"version" => FLIGHTPATH_VERSION,
);
return $rtn;
}
$res = db_query("SELECT * FROM modules WHERE name = '?' ", $module);
$cur = db_fetch_array($res);
if ($test = unserialize($cur ["info"])) {
$cur ["info"] = $test;
}
return $cur;
}