You are here

sms_receive.install in SMS Framework 5

File

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

function sms_receive_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE  {sms_receive} (\n                    `mid` int(10) unsigned NOT NULL,\n                    `number` varchar(255) NOT NULL,\n                    `message` varchar(255) NOT NULL,\n                    `time` varchar(255) NOT NULL,\n                    PRIMARY KEY  (`mid`)\n                  )/*!40100 DEFAULT CHARACTER SET utf8 */");
      break;
  }
}

/**
 * Implementation of hook_uninstall().
 */
function sms_receive_uninstall() {
  db_query('DROP TABLE {sms_receive}');

  // remove set_variables here
  drupal_set_message(t('SMS Framework uninstalled successfully.'));
}

Functions