You are here

function drush_patterns_unpublish in Patterns 7

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

patterns unpublish command callback.

File

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

Code

function drush_patterns_unpublish($pid) {
  drush_print("Unpublishing a pattern.");
  $result = patterns_db_unpublish_pattern($pid);
  if ($result) {
    drush_print("Operation was successful");
  }
  else {
    drush_set_error(dt("An error occurred, patterns public status could not be changed."));
  }
}