function audit_get_approval_record

6.x audit.module audit_get_approval_record($student_id, $approval_type)
2 calls to audit_get_approval_record()
audit_display_audit in modules/audit/audit.module
audit_popup_edit_approval_form in modules/audit/audit.module
This is the actual form that will be used to change an audit approval for a student.

File

modules/audit/audit.module, line 217
This is the Audit module, which provides functionality relating to degree audits.

Code

function audit_get_approval_record($student_id, $approval_type) {
  $res = db_query("SELECT * FROM audit_approvals
                                    WHERE student_id = '?'
                                    AND approval_type = '?' ", $student_id, $approval_type);

  $cur = db_fetch_array($res);
  return $cur;
}