You are here

function patterns_io_import_file_remote in Patterns 7.2

Same name and namespace in other branches
  1. 7 includes/io/import.inc \patterns_io_import_file_remote()
1 call to patterns_io_import_file_remote()
drush_patterns_import_file_remote in ./patterns.drush.inc
Imports the specified patterns file

File

includes/io/import.inc, line 132
Importing Patterns from a file or using an URL.

Code

function patterns_io_import_file_remote($uri, $format = PATTERNS_FORMAT_UNKNOWN) {
  if (!ini_get('allow_url_fopen')) {
    drupal_set_message(t('allow_url_fopen must be enabled in your php configuration in order to open remote file.'), 'error');
    return FALSE;
  }
  return patterns_io_import_file($uri, $format);
}