function patterns_d2d_patterns_publish in Patterns 7.2
Same name and namespace in other branches
- 7 patterns_d2d/patterns_d2d.module \patterns_d2d_patterns_publish()
File
- patterns_d2d/
patterns_d2d.module, line 27 - TBD
Code
function patterns_d2d_patterns_publish($pattern) {
if (variable_get('patterns_d2d_auto_publish', FALSE)) {
patterns_d2d_push_patterns_client(array(
$pattern,
));
}
else {
drupal_set_message(t('Automatic publishing of is patterns not enabled.'), 'warning');
}
}