function schools_get_school_definitions
Search API
| 7.x schools.module | schools_get_school_definitions($bool_return_db_rows = FALSE) |
| 6.x schools.module | schools_get_school_definitions($bool_return_db_rows = FALSE) |
24 calls to schools_get_school_definitions()
- admin.degrees.inc in modules/
admin/ admin.degrees.inc - admin.groups.inc in modules/
admin/ admin.groups.inc - admin.module in modules/
admin/ admin.module - The administrative configurations for FlightPath.
- admin_display_degrees_popup_add_group2 in modules/
admin/ admin.degrees.inc - admin_display_groups_popup_edit_definition in modules/
admin/ admin.groups.inc
File
- modules/
schools/ schools.module, line 1461 - Schools module.
Code
function schools_get_school_definitions($bool_return_db_rows = FALSE) {
$rtn = array();
$rtn [0] = t("Default");
if ($bool_return_db_rows) {
$rtn [0] = array(
'school_id' => 0,
'school_code' => '',
'name' => t('Default'),
);
}
$res = db_query("SELECT * FROM schools ORDER BY school_id");
while ($cur = db_fetch_array($res)) {
$key = intval($cur ["school_id"]);
$value = $cur ["name"];
$rtn [$key] = $value;
if ($bool_return_db_rows) {
$rtn [$key] = $cur;
}
}
return $rtn;
}
