function admin_advising_settings_form

7.x admin.module admin_advising_settings_form($school_id = 0)
6.x admin.module admin_advising_settings_form($school_id = 0)
4.x admin.module admin_advising_settings_form()
5.x admin.module admin_advising_settings_form()

This is a systems settings form, which lets the user edit advising variabled for FlightPath.

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

File

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

Code

function admin_advising_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("Edit %school school advising settings", array('%school' => $school_name)));
    if ($school_id !== 0) {
      $fs = "~~school_" . $school_id;
    }
  }


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




  $form ["available_advising_term_ids" . $fs] = array(
    "type" => "textarea",
    "rows" => 2,
    "label" => t("Available advising term id(s)"),
    "value" => fp_space_csv(variable_get_for_school("available_advising_term_ids", "", $school_id, TRUE)),
    "description" => t("These are the terms for which advisors may advise a student to take
                        a course.  They should follow the structure established on the
                        school data settings page.
                        Separate term id's by commas. Ex: 200940, 200941, 200960. Make sure to enter
                        in the order that they should appear in FlightPath."),
  );


  $form ["advising_term_id" . $fs] = array(
    "type" => "textarea",
    "rows" => 2,
    "label" => t("Default advising term id"),
    "value" => fp_space_csv(variable_get_for_school("advising_term_id", "", $school_id, TRUE)),
    "description" => t("Of the available term ids above, this is the default that FlightPath
                        is set to when an advisor logs in. Ex: 200940.
                        <br><strong>Only enter one Term ID in this box.</strong>"),
  );


  $form ["current_catalog_year" . $fs] = array(
    "type" => "textfield",
    "size" => 10,
    "label" => t("Current catalog year"),
    "value" => variable_get_for_school("current_catalog_year", "", $school_id, TRUE),
    "description" => t("This is the year which What If loads degrees from, as well as other important functions.
                        Only change this once you have fully loaded a new catalog year."),
  );


  $form ["current_draft_catalog_year" . $fs] = array(
    "type" => "textfield",
    "size" => 10,
    "label" => t("Current DRAFT catalog year"),
    "value" => variable_get_for_school("current_draft_catalog_year", "", $school_id, TRUE),
    "description" => t("While in Draft mode, this is the year which Blank Degree Search loads degrees from.  What If
                        mode will always use the Current catalog year, set above.
                        You may change this while working on a new catalog.  It will not affect any other
                        users of the system.  While not working on a new catalog, set this
                        to the same as the Current catalog year."),
  );


  $form ["not_released_grades_terms" . $fs] = array(
    "type" => "textarea",
    "rows" => 2,
    "label" => t("NOT released grades terms"),
    "value" => fp_space_csv(variable_get_for_school("not_released_grades_terms", "", $school_id, TRUE)),
    "description" => t("Enter the term_id's, separated by commas, 
                        which are NOT released and should NOT be visible to either advisors or students. 
                        Coures in these terms will only show midterm grades or no grades at all. 
                        Ex: 201240, 201240:S1") . "<br>" . t("If left blank, grades will be visible to 
                        students and advisors as soon as they appear in the database."),
  );




  return $form;
}