You are here

function patterns_io_import_file_remote in Patterns 7

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


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


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);