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.

File

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

Code

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

  $settings = fp_get_system_settings();

  /*
  $mark = "";
  // TODO: This needs to become genericized!  If it can't be, it should just be taken out.
    
  $sems = array(40,41, 60,81,82);
  for($t = $settings["current_catalog_year"]; $t <= $settings["current_catalog_year"] + 2; $t++) {
    $mark .= "<div style='padding-left: 15px;'>";
    foreach($sems as $sm) {
      $try_year = $t . $sm;
      $course = new Course();
      $course->term_id = $try_year;
      $mark .= "" . $course->get_term_description(true) . ": <b>$course->term_id</b>, &nbsp; &nbsp; &nbsp;";
    }
    $mark .= "</div>";
  }  
  
    
  $form["mark" . $m++] = array(
    "type" => "markup",
    "value" => t("Term ID Quick Reference:") . $mark,
  );
  */

  $form ["available_advising_term_ids"] = array(
    "type" => "textfield",
    "label" => t("Available advising term id's"),
    "value" => variable_get("available_advising_term_ids", ""),
    "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"] = array(
    "type" => "textfield",
    "label" => t("Default advising term id"),
    "value" => variable_get("advising_term_id", ""),
    "description" => t("Of the available term ids above, this is the default that FlightPath
                        is set to when an advisor logs in. Ex: 200940."),
  );


  $form ["current_catalog_year"] = array(
    "type" => "textfield",
    "size" => 10,
    "label" => t("Current catalog year"),
    "value" => variable_get("current_catalog_year", ""),
    "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"] = array(
    "type" => "textfield",
    "size" => 10,
    "label" => t("Current DRAFT catalog year"),
    "value" => variable_get("current_draft_catalog_year", ""),
    "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"] = array(
    "type" => "textfield",
    "label" => t("NOT released grades terms"),
    "value" => variable_get("not_released_grades_terms", ""),
    "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;
}