function student_search_settings_form

7.x student_search.module student_search_settings_form()
6.x student_search.module student_search_settings_form()
4.x student_search.module student_search_settings_form()
5.x student_search.module student_search_settings_form()

This is a system_settings form for configuring our module.

File

modules/student_search/student_search.module, line 124

Code

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


  $form ["student_search_major_search_cur_year"] = array(
    "type" => "checkbox",
    "label" => "Major search - Only show major choices from current catalog year?",
    "value" => variable_get("student_search_major_search_cur_year", FALSE),
    "description" => t("If checked, the Majors tab will only allow selections of
                        unexcluded degrees/majors in the current catalog year.
                        If not sure what to do, leave this CHECKED."),
  );



  $form ["extra_student_search_conditions"] = array(
    "type" => "textarea",
    "label" => t("Extra student search conditions:"),
    "value" => variable_get("extra_student_search_conditions", " AND is_active = 1 "),
    "description" => t("This is mysql which will get appended to end of the WHERE clause of every query
                    relating to searching for students.  It is so you can easily add global conditions, 
                    especially if you are overriding the student_search module.  For example,
                    to check that the students are admitted or enrolled.  <b>Probably not necessary</b> if you
                    are not overriding the student_search module.  If you are unsure what to do, leave this set to default.
                    <br>Default is:  AND is_active = 1 "),
  );


  $form ["enrolled_student_search_conditions"] = array(
    "type" => "textarea",
    "label" => t("Enrolled student search conditions:"),
    "value" => variable_get("enrolled_student_search_conditions", " AND is_active = 1 "),
    "description" => t("Similar to the one above it, this is a clause which will only bring up students
                    who are enrolled at the university, and taking courses.  This might be identical to the
                    one above it.  At the moment, this is only being used in the Stats module, and not
                    for any logic in FlightPath, so you should consider it optional.
                    <br>Default is:  AND is_active = 1 "),
  );



  return $form;
}