function _locale_translation_file_is_remote

Determine if a file is a remote file.

Parameters

string $url: The URL or URL pattern of the file.

Return value

boolean TRUE if the $url is a remote file.

1 call to _locale_translation_file_is_remote()
locale_translation_source_build in drupal/core/modules/locale/locale.compare.inc

File

drupal/core/modules/locale/locale.compare.inc, line 519
The API for comparing project translation status with available translation.

Code

function _locale_translation_file_is_remote($url) {
  $scheme = file_uri_scheme($url);
  if ($scheme) {
    return !drupal_realpath($scheme . '://');
  }
  return FALSE;
}