Projet

Général

Profil

Paste
Télécharger (689 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / libraries / libraries.install @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 * Install, uninstall, and update functions for libraries.module.
6
 */
7

    
8
/**
9
 * Implements hook_schema().
10
 */
11
function libraries_schema() {
12
  $schema['cache_libraries'] = drupal_get_schema_unprocessed('system', 'cache');
13
  $schema['cache_libraries']['description'] = 'Cache table to store library information.';
14
  return $schema;
15
}
16

    
17
/**
18
 * Create the 'cache_libraries' table.
19
 */
20
function libraries_update_7200() {
21
  // Note that previous versions of this function created the table with a
22
  // different table comment.
23
  if (!db_table_exists('cache_libraries')) {
24
    $specs = libraries_schema();
25
    db_create_table('cache_libraries', $specs['cache_libraries']);
26
  }
27
}