You are here

sms_user.install in SMS Framework 6

File

modules/sms_user/sms_user.install
View source
<?php

/**
 * Implementation of hook_install().
 */
function sms_user_install() {
  drupal_install_schema('sms_user');
}

/**
 * Implementation of hook_schema().
 */
function sms_user_schema() {
  $schema['sms_user'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'delta' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'number' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 32,
      ),
      'status' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'code' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 16,
      ),
      'gateway' => array(
        'type' => 'text',
      ),
    ),
    'primary key' => array(
      'uid',
      'delta',
    ),
    'unique key' => array(
      'number',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_uninstall().
 */
function sms_user_uninstall() {
  drupal_uninstall_schema('sms_user');
}

Functions

Namesort descending Description
sms_user_install Implementation of hook_install().
sms_user_schema Implementation of hook_schema().
sms_user_uninstall Implementation of hook_uninstall().