hook_install

hook_install doesn't seem to work

  1. <?php
  2. /**
  3.  * Implemenation of hook_install()
  4.  */
  5. function tnt_user_import_install() {
  6.         // Create tables.
  7.         drupal_install_schema('tnt_user_import_schema');
  8. }
  9.  
  10. /**

Installing module tables

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * Make a database schema
  6.  */
  7. function loginhistory_schema()
  8. {      
  9.         $schema = array();
  10.         $schema['loginhistory'] = array(
  11.                 'fields' => array(
  12.                         'uid' => array(
Syndicate content