You are here

function views_isotope_check_url in Brainstorm profile 7

Helper function to check if a url exists.

1 call to views_isotope_check_url()
views_isotope_check_library in modules/custom/views_isotope/views_isotope.module
Check for the library and return the appropriate scope.

File

modules/custom/views_isotope/views_isotope.module, line 297
Load the isotope library and provide configuration and theme options.

Code

function views_isotope_check_url($url) {
  $header_response = get_headers($url, 1);
  if (strpos($header_response[0], "200") === FALSE) {
    return FALSE;
  }
  return TRUE;
}