function drush_patterns_import_file in Patterns 7
Same name and namespace in other branches
- 7.2 patterns.drush.inc \drush_patterns_import_file()
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'
- patterns_drush_command in ./
patterns.drush.inc - Implements hook_drush_command().
File
- ./
patterns.drush.inc, line 485 - Drush Patterns module commands
Code
function drush_patterns_import_file($file, $format = PATTERNS_FORMAT_UNKNOWN) {
drush_print(dt("Importing local pattern file: " . $file));
return patterns_io_import_file($file, $format);
}