File: libraries.install

package info (click to toggle)
drupal7-mod-libraries 2.1-3~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 284 kB
  • sloc: php: 191; pascal: 70; makefile: 32
file content (27 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

/**
 * @file
 * Install, uninstall, and update functions for libraries.module.
 */

/**
 * Implements hook_schema().
 */
function libraries_schema() {
  $schema['cache_libraries'] = drupal_get_schema_unprocessed('system', 'cache');
  $schema['cache_libraries']['description'] = 'Cache table to store library information.';
  return $schema;
}

/**
 * Create the 'cache_libraries' table.
 */
function libraries_update_7200() {
  // Note that previous versions of this function created the table with a
  // different table comment.
  if (!db_table_exists('cache_libraries')) {
    $specs = libraries_schema();
    db_create_table('cache_libraries', $specs['cache_libraries']);
  }
}