Mercurial > hg > rr-repo
comparison sites/all/modules/references/node_reference/node_reference.install @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:b28be78d8160 | 4:ce11bbd8f642 |
---|---|
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 } |