function course_search_get_course_rotation_schedule_not_anticipated

6.x course_search.module course_search_get_course_rotation_schedule_not_anticipated($course_id)
4.x course_search.module course_search_get_course_rotation_schedule_not_anticipated($course_id)
5.x course_search.module course_search_get_course_rotation_schedule_not_anticipated($course_id)
2 calls to course_search_get_course_rotation_schedule_not_anticipated()
course_search_display_courses in modules/course_search/course_search.module
Show the user their select of courses.
course_search_display_edit_courses in modules/course_search/course_search.edit.inc
Display a plain list of courses, making it easier for admins to edit schedules and details in one spot.

File

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

Code

function course_search_get_course_rotation_schedule_not_anticipated($course_id) 
 {

  // Returns TRUE if not is NOT ANTICIPATED.  False, if this
  // is a normal courses which has an offering, or a blank
  // offering.  This will
  // only return true if NOTA is set as a term for this course.
  $res = db_query("SELECT * FROM course_rotation_schedule
							WHERE course_id = '?'
							AND term_id = 'NOTA'
							", $course_id);
  if (db_num_rows($res) > 0) {
    return true;
  }

  return false;

}