function drush_patterns_publish in Patterns 7.2
Same name and namespace in other branches
- 7 patterns.drush.inc \drush_patterns_publish()
patterns publish command callback.
File
- ./
patterns.drush.inc, line 331 - 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."));
}
}