function system_check_course_inventory_should_be_reloaded

7.x system.module system_check_course_inventory_should_be_reloaded()
6.x system.module system_check_course_inventory_should_be_reloaded()

Should the course inventory get reloaded from file? If so, return TRUE.

2 calls to system_check_course_inventory_should_be_reloaded()
advise_display_view in modules/advise/advise.module
This is the page which actually displays the "view" for the user to see their advising session, or for an advisor to advise them.
student_search_student_select_switchboard in modules/student_search/student_search.module
The user has selected a student (clicked on a row) from the Search or My Advisees screen.

File

modules/system/system.module, line 3789

Code

function system_check_course_inventory_should_be_reloaded() {
  $x = intval($_SESSION ['fp_cache_course_inventory_last_generated']);
  $last_generated = intval(variable_get('cache_course_inventory_last_generated', 0));
  if ($x !== $last_generated) {
    return TRUE;
  }

  return FALSE;

}