Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / draggableviews / draggableviews.module.rej
diff --git a/web/modules/contrib/draggableviews/draggableviews.module.rej b/web/modules/contrib/draggableviews/draggableviews.module.rej
new file mode 100644 (file)
index 0000000..1c1c2f4
--- /dev/null
@@ -0,0 +1,26 @@
+--- draggableviews.module      (revision 76d7ca84425218e1e9f60633767bcbb5024a3d8c)
++++ draggableviews.module      (revision )
+@@ -58,10 +58,23 @@
+         'left_table' => $base_table,
+         'left_field' => $entity_keys['id'],
+         'field' => 'entity_id',
++        'extra' => array(
++          array('field' => 'view_name', 'value' => '***VIEW_ID***'),
++          array('field' => 'view_display', 'value' => '***VIEW_DISPLAY***'),
++        ),
+       );
+     }
+   }
+ }
++
++/**
++ * Implements hook_views_query_substitutions().
++ *
++ * Allow replacement of current userid so we can cache these queries.
++ */
++function draggableviews_views_query_substitutions(\Drupal\views\ViewExecutable $view) {
++  return array('***VIEW_ID***' => $view->id(), '***VIEW_DISPLAY***' => $view->current_display);
++}
+ /**
+  * Implements hook_preprocess_views_view_table().