2009-05-17 11:16:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Contains install and update functions for Views.
|
|
|
|
*/
|
|
|
|
|
2012-05-15 16:07:21 +00:00
|
|
|
use Drupal\Core\Database\Database;
|
|
|
|
|
2009-05-17 11:16:51 +00:00
|
|
|
/**
|
|
|
|
* Implements hook_install().
|
|
|
|
*/
|
|
|
|
function views_install() {
|
2012-10-09 22:19:20 +00:00
|
|
|
module_set_weight('views', 10);
|
2009-05-17 11:16:51 +00:00
|
|
|
}
|
|
|
|
|
2013-01-19 20:13:19 +00:00
|
|
|
/**
|
|
|
|
* Provide an initial schema.
|
|
|
|
*
|
2013-06-06 08:08:39 +00:00
|
|
|
* @see UpdateModuleHandler::enable().
|
2013-01-19 20:13:19 +00:00
|
|
|
*/
|
|
|
|
function views_schema_0() {
|
|
|
|
module_load_install('system');
|
|
|
|
// Add the cache_views_info and cache_views_results tables.
|
|
|
|
$cache_schema = system_schema_cache_8007();
|
|
|
|
$schema['cache_views_info'] = $cache_schema;
|
|
|
|
$schema['cache_views_results'] = $cache_schema;
|
|
|
|
return $schema;
|
|
|
|
}
|