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)
4 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.
prereqs_content_alter in modules/prereqs/prereqs.module
Implememnt hook_content_alter
prereqs_get_prereq_warnings_for_course in modules/prereqs/prereqs.module
This is meant to be a general function to find all relavent prereq warnings for the supplied course.

File

modules/course_search/course_search.module, line 774
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) 
 {
  $rtn = FALSE;

  // 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) {
    $rtn = TRUE;
  }


  //////////////////////////////////////
  // Okay, now we invoke a hook, to see if any other modules
  // would like to add or alter our answer
  invoke_hook("course_search_get_course_rotation_schedule_not_anticipated", array(&$rtn, $course_id));

  return $rtn;

}