admin_get_de_catalog_year

4.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.

16 calls to admin_get_de_catalog_year()
admin_add_degree_form in modules/admin/admin.degrees.inc
This form lets the user add a degree to the database.
admin_apply_draft_changes_form_submit in modules/admin/admin.module
Handles the actual moving of draft courses into production.
admin_copy_degree_form in modules/admin/admin.degrees.inc
This form lets the user copy a degree and all of it's tracks & concentrations.
admin_display_courses in modules/admin/admin.courses.inc
This function displays all of our courses for us to edit.
admin_display_degrees in modules/admin/admin.degrees.inc

... See full list

File

modules/admin/admin.module, line 1018
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;
}