You are here

authcache_example.install in Authenticated User Page Caching (Authcache) 6

Same filename and directory in other branches
  1. 7 modules/authcache_example/authcache_example.install

File

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

/**
 * Implementation of hook_schema().
 */
function authcache_example_schema() {
  $schema['authcache_example'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'block_text' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_enable().
 */
function authcache_example_enable() {
}

/**
 * Implementation of hook_disable().
 */
function authcache_example_disable() {
}

/**
 * Implementation of hook_install().
 */
function authcache_example_install() {

  // Create table to hold our user block text
  drupal_install_schema('authcache_example');
}

/**
 * Implementation of hook_uninstall().
 */
function authcache_example_uninstall() {
  drupal_uninstall_schema('authcache_example');
}

Functions

Namesort descending Description
authcache_example_disable Implementation of hook_disable().
authcache_example_enable Implementation of hook_enable().
authcache_example_install Implementation of hook_install().
authcache_example_schema Implementation of hook_schema().
authcache_example_uninstall Implementation of hook_uninstall().