You are here

poptin.install in Website Popups, Email Popup, Exit-Intent Popup, and Contact Forms – Poptin 7

Same filename and directory in other branches
  1. 8 poptin.install

Module for creating table on time of install and drop on time of uninstall.

File

poptin.install
View source
<?php

/**
 * @file
 * Module for creating table on time of install and drop on time of uninstall.
 */

/**
 * Implements poptin_schema().
 */
function poptin_schema() {
  $schema['poptin'] = array(
    'description' => 'The base table for nodes.',
    'fields' => array(
      'pid' => array(
        'description' => 'The primary identifier for a Poptin Entry.',
        'type' => 'serial',
        'length' => 32,
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'user_id' => array(
        'description' => 'The poptin userid.',
        'type' => 'varchar',
        'length' => 32,
        'default' => 0,
      ),
      'client_id' => array(
        'description' => 'The poptin clientid.',
        'type' => 'varchar',
        'length' => 32,
        'default' => '',
      ),
      'token' => array(
        'description' => 'The poptin token.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
poptin_schema Implements poptin_schema().