function admin_get_de_catalog_year
Search API
| 7.x admin.module | admin_get_de_catalog_year($bool_set_earliest_if_blank = TRUE, $school_id = 0) |
| 6.x admin.module | admin_get_de_catalog_year($bool_set_earliest_if_blank = TRUE, |
| 5.x admin.module | admin_get_de_catalog_year($bool_set_earliest_if_blank = TRUE) |
Get the "de_catalog_year" from the REQUEST. If it's not there or invalid, pull it from our system settings.
23 calls to admin_get_de_catalog_year()
- admin.courses.inc in modules/
admin/ admin.courses.inc - 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_add_degree_form in modules/
admin/ admin.degrees.inc - This form lets the user add a degree to the database.
File
- modules/
admin/ admin.module, line 1107 - The administrative configurations for FlightPath.
Code
function admin_get_de_catalog_year($bool_set_earliest_if_blank = TRUE) {
$settings = fp_get_system_settings();
$de_catalog_year = @$_REQUEST ["de_catalog_year"];
if ($bool_set_earliest_if_blank) {
if (!$de_catalog_year || $de_catalog_year < $settings ["earliest_catalog_year"]) {
$de_catalog_year = $settings ["earliest_catalog_year"];
}
}
return $de_catalog_year;
}
