Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / entity_test.views.inc
diff --git a/web/core/modules/system/tests/modules/entity_test/entity_test.views.inc b/web/core/modules/system/tests/modules/entity_test/entity_test.views.inc
new file mode 100644 (file)
index 0000000..53d37da
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Include file for test module.
+ */
+
+/**
+ * Implements hook_views_data_alter().
+ */
+function entity_test_views_data_alter(&$data) {
+  $data['entity_test']['name_alias'] = $data['entity_test']['name'];
+  $data['entity_test']['name_alias']['field']['real field'] = 'name';
+}