Mercurial > hg > rr-repo
view sites/all/modules/references/user_reference/user_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 |
line wrap: on
line source
<?php /** * @file * Install, update and uninstall functions for the user_reference module. */ /** * Implements hook_field_schema(); */ function user_reference_field_schema($field) { $columns = array( 'uid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, ), ); return array( 'columns' => $columns, 'indexes' => array('uid' => array('uid')), 'foreign keys' => array( 'uid' => array( 'table' => 'users', 'columns' => array('uid' => 'uid'), ), ), ); }