function course_search_select_school_form

7.x course_search.module course_search_select_school_form()
6.x course_search.module course_search_select_school_form()
1 string reference to 'course_search_select_school_form'
course_search_display_search in modules/course_search/course_search.module
Displays the search pulldown for the user to use to find courses.

File

modules/course_search/course_search.module, line 942
This module allows users to search for courses, descriptions, and, if supported, rotation schedules and sample syllabi.

Code

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

  $options = schools_get_schools_for_fapi(TRUE, FALSE); // we don't need special permissions to view.
  $form ['school_id'] = array(
    'type' => 'select',
    'label' => t('Please begin by selecting a school:'),
    'options' => $options,
    'value' => @$_REQUEST ['school_id'],
    'hide_please_select' => TRUE,
    'required' => TRUE,
  );

  $form ['submit_btn'] = array(
    'type' => 'submit',
    'value' => t("Continue"),
  );

  return $form;
}