function fp_get_system_settings

4.x fp_get_system_settings($force_rebuild = FALSE)
5.x fp_get_system_settings($force_rebuild = FALSE)
10 calls to fp_get_system_settings()
admin_advising_settings_form in modules/admin/admin.module
This is a systems settings form, which lets the user edit advising variabled for FlightPath.
admin_display_main in modules/admin/admin.module
This is the "main" page for the admin module. It's what the user first sees when the click to go to the Admin page.
admin_get_de_catalog_year in modules/admin/admin.module
Get the "de_catalog_year" from the REQUEST. If it's not there or invalid, pull it from our system settings.
advise_display_popup_group_select in modules/advise/advise.module
advise_display_what_if_selection in modules/advise/advise.module
Displays the pulldown select list for picking a new What If degree. Returns HTML.

... See full list


includes/, line 402
This file contains mostly db shortcuts.


function fp_get_system_settings($force_rebuild = FALSE) {

  if ($force_rebuild == FALSE && isset($GLOBALS ["fp_system_settings"])) {
    return $GLOBALS ["fp_system_settings"];

  // Get all of our settings from the variables table.
  $res = db_query("SELECT * FROM variables");
  while ($cur = db_fetch_array($res)) {
    $name = $cur ["name"];
    $val = unserialize($cur ["value"]);

    if ($val == "BOOLEAN_FALSE_PLACEHOLDER") {
      $val = FALSE;

    $settings [$name] = $val;
    $GLOBALS ["fp_system_settings"][$name] = $val;


  // Make sure some important settings have _something_ set, or else it could cause
  // problems for some modules.
  if ($settings ["current_catalog_year"] == "") {
    $settings ["current_catalog_year"] = 2006;
  if ($settings ["earliest_catalog_year"] == "") {
    $settings ["earliest_catalog_year"] = 2006;

  $GLOBALS ["fp_system_variables"] = $settings;

  return $settings;