You are here

function isotope_check_url in Isotope (with Masonry and Packery) 7.2

Helper function to check if a url exists.

1 call to isotope_check_url()
isotope_check_library in ./isotope.module
Check for the library and return the appropriate scope.

File

./isotope.module, line 300
Load the isotope library and provide configuration and theme options.

Code

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