_locale_translation_file_is_remote

_locale_translation_file_is_remote($uri)

Determine if a file is a remote file.

Parameters

string $uri: The URI or URI pattern of the file.

Return value

bool TRUE if the $uri is a remote file.

File

core/modules/locale/locale.translation.inc, line 377
Common API for interface translation.

Code

function _locale_translation_file_is_remote($uri) {
  $scheme = file_uri_scheme($uri);
  if ($scheme) {
    return !drupal_realpath($scheme . '://');
  }
  return FALSE;
}
doc_Drupal
2016-10-29 09:57:16
Comments
Leave a Comment

Please login to continue.