comparison sites/all/modules/references/node_reference/node_reference.install @ 6:a75ead649730

added biblio, admin_menu and reference modules
author danieleb <danielebarchiesi@me.com>
date Fri, 20 Sep 2013 11:18:21 +0100
parents
children
comparison
equal deleted inserted replaced
5:d72257b2ddc2 6:a75ead649730
1 <?php
2
3 /**
4 * @file
5 * Install, update and uninstall functions for the node_reference module.
6 */
7
8 /**
9 * Implements hook_field_schema().
10 */
11 function node_reference_field_schema($field) {
12 $columns = array(
13 'nid' => array(
14 'type' => 'int',
15 'unsigned' => TRUE,
16 'not null' => FALSE,
17 ),
18 );
19 return array(
20 'columns' => $columns,
21 'indexes' => array('nid' => array('nid')),
22 'foreign keys' => array(
23 'nid' => array(
24 'table' => 'node',
25 'columns' => array('nid' => 'nid'),
26 ),
27 ),
28 );
29 }
30
31 /**
32 * Rebuild views data cache (a callabck was renamed).
33 */
34 function node_reference_update_7000() {
35 if (function_exists('views_invalidate_cache')) {
36 views_invalidate_cache();
37 }
38 }