function audit_get_approval_types
Search API
6.x audit.module | audit_get_approval_types($school_id = 0) |
Return an assoc array of approval types.
3 calls to audit_get_approval_types()
- audit_display_audit in modules/
audit/ audit.module - audit_hidden_approval_form_submit 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 194 - This is the Audit module, which provides functionality relating to degree audits.
Code
function audit_get_approval_types($school_id = 0) {
$rtn = array();
$val = variable_get_for_school("audit_approval_types", "coursework ~ Coursework\nmajor_gpa ~ Major GPA\ngraduation_gpa ~ Graduation GPA", '', $school_id);
$lines = explode("\n", $val);
foreach ($lines as $line) {
if (trim($line) == "") {
continue;
}
$temp = explode("~", $line);
$key = trim($temp [0]);
$title = trim($temp [1]);
@$desc = trim($temp [2]);
$rtn [$key] = array(
"title" => $title,
"description" => $desc,
);
}
return $rtn;
}