From 536d0c8bc1fc1e36790a476c74d0d03e6b7de10c Mon Sep 17 00:00:00 2001 From: damiankloip <damiankloip@1037976.no-reply.drupal.org> Date: Sat, 16 Jun 2012 17:35:44 +0200 Subject: [PATCH] Issue #1641828 by damiankloip: Implement a hook_ctools_exportable_info(). --- views.module | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/views.module b/views.module index 2a77d07d39bd..5fc87c08ff5f 100644 --- a/views.module +++ b/views.module @@ -19,6 +19,28 @@ function views_api_version() { return '3.0'; } +/** + * Implements hook_ctools_exportable_info(). + */ +function views_ctools_exportable_info() { + return array( + 'view' => array( + 'controller class' => 'Drupal\ctools\DatabaseExportableController', + 'key' => 'name', + 'identifier' => 'view', + 'default hook' => 'views_default_views', + 'bulk export' => TRUE, + 'api' => array( + 'owner' => 'views', + 'api' => 'views_default', + 'minimum_version' => '2', + 'current_version' => '3.0', + ), + 'schema' => 'views_view', + ), + ); +} + /** * Implements hook_forms(). * -- GitLab