Skip to content
Snippets Groups Projects
Commit b307d220 authored by Tancredi D'Onofrio's avatar Tancredi D'Onofrio Committed by Antonio De Marco
Browse files

Adds check for preview and embed for embedded views (#185)

parent 7a316cb1
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ function template_preprocess_pattern_views_row(array &$variables) {
}
$variables['pattern'] = [];
if ($view->preview) {
if ($view->preview && !isset($view->element['#embed'])) {
drupal_set_message(t("Pattern Views row plugin does not support preview."), 'warning');
$variables['pattern'] = ['#type' => 'status_messages'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment