You are here

function drush_patterns_publish in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns.drush.inc \drush_patterns_publish()

patterns publish command callback.

File

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

Code

function drush_patterns_publish($pid) {
  drush_print("Publishing pattern.");
  $result = patterns_db_publish_pattern($pid);
  if ($result) {
    drush_print("Operation was successful");
  }
  else {
    drush_set_error(dt("An error occurred, patterns was not marked as public."));
  }
}