function schools_init

7.x schools.module schools_init()
6.x schools.module schools_init()

Implements hook_init

File

modules/schools/schools.module, line 140
Schools module.

Code

function schools_init() {
  // Is there an urgent message to display based on school?
  global $user;

  $school_id = $user->school_id;
  $defs = schools_get_school_definitions();

  $urgent_msg = trim(variable_get("urgent_msg_$school_id", ""));
  if ($urgent_msg) {
    fp_add_message("<b>" . t("Important Message (%school_desc):", array("%school_desc" => @$defs [$school_id])) . "</b> " . $urgent_msg, "status", TRUE);
  }




}