function admin_urgent_message_form

6.x admin.module admin_urgent_message_form()
4.x admin.module admin_urgent_message_form()
5.x admin.module admin_urgent_message_form()

Meant to be fed into "fp_system_settings_form()", this function returns an array which will automatically save values to our "variables" table.

1 string reference to 'admin_urgent_message_form'
schools_form_alter in modules/schools/schools.module
Implements hook_form_alter

File

modules/admin/admin.module, line 1325
The administrative configurations for FlightPath.

Code

function admin_urgent_message_form() {
  $form = array();

  $form ["mark_top"] = array(
    "type" => "markup",
    "value" => "<p>" . t("Any message you enter here will be displayed at the top of every page <b>for all users</b> in the system. 
                  This is used to alert users that the system is about to be taken offline, or any other urgently-needed information.") . "</p>",

  );

  $form ["urgent_msg"] = array(
    "type" => "textarea",
    "label" => "Global Urgent Message:",
    "value" => variable_get("urgent_msg", ""),
    'description' => t("To delete this message, simple delete all the text in this box and save."),
  );

  return $form;
}