You are here

function drush_patterns_import_file_remote in Patterns 7.2

Same name and namespace in other branches
  1. 7 patterns.drush.inc \drush_patterns_import_file_remote()

Imports the specified patterns file

Parameters

string path to the patterns file:

string optional machine readable name for the pattern you are importing:

Return value

mixed bool|string FALSE upon failure; the name of the imported pattern upon success

1 string reference to 'drush_patterns_import_file_remote'
patterns_drush_command in ./patterns.drush.inc
Implements hook_drush_command().

File

./patterns.drush.inc, line 520
Drush Patterns module commands

Code

function drush_patterns_import_file_remote($file, $format = PATTERNS_FORMAT_UNKNOWN) {
  drush_print(dt("Importing pattern file from remote uri: " . $file));
  return patterns_io_import_file_remote($file, $format);
}