function certificate_set_load in Certificate 6
Implementation of hook_function_load().
Menu load handler for an certificate type.
File
- ./
certificate.module, line 419 - Certificate module.
Code
function certificate_set_load($id) {
$sql = "SELECT * FROM {certificate_types} ct\n left join {node} certificate on certificate.nid = ct.template_id\n WHERE type_id = %d";
$result = db_query($sql, $id);
if ($type = db_fetch_object($result)) {
return $type;
}
else {
return FALSE;
}
}