You are here

function patterns_load_file_and_start_engine in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns.drush.inc \patterns_load_file_and_start_engine()
1 call to patterns_load_file_and_start_engine()
drush_patterns_quickrun in ./patterns.drush.inc
Runs a pattern file without importing it into the database

File

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

Code

function patterns_load_file_and_start_engine($file, $format = PATTERNS_FORMAT_UNKNOWN, $mode, $params) {
  $pattern = patterns_io_load_pattern_from_file($file, $format);
  $params = array(
    'run-subpatterns' => TRUE,
  );
  drush_patterns_run_pattern($pattern, $mode, $params);
}