function alerts_settings_form

6.x alerts.module alerts_settings_form($school_id = 0)
1 string reference to 'alerts_settings_form'
schools_form_alter in modules/schools/schools.module
Implements hook_form_alter

File

modules/alerts/alerts.module, line 81
module file for Alerts

Code

function alerts_settings_form($school_id = 0) {
  $form = array();

  $school_id = intval($school_id);

  $fs = ""; // The field name suffix.  We will add this to the end of all of our field names.  If this is the default school, leave blank.
  if (module_enabled("schools")) {
    $school_name = schools_get_school_name_for_id($school_id);
    fp_set_title(t("Configure %school Alerts settings", array('%school' => $school_name)));
    if ($school_id !== 0) {
      $fs = "~~school_" . $school_id;
    }
  }

  $form ['school_id'] = array(
    'type' => 'hidden',
    'value' => $school_id,
  );


  $form ['alerts_tags' . $fs] = array(
    'label' => t("Tags"),
    'type' => 'textarea',
    'value' => variable_get_for_school("alerts_tags", "", $school_id, TRUE),
    'description' => t("These are tags wich may be selected when creating a new Alert.
                        Enter tags one per line.  For example: 
                        <br> &nbsp; Academics<br> &nbsp; Financial Aid<br> &nbsp; English"),

  );



  return $form;
}