You are here

hosting_site_data.install in Hosting 7.4

Install, update and uninstall functions for the hosting_site_data module.

File

example/site_data/hosting_site_data.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the hosting_site_data module.
 */

/**
 * Implements hook_schema().
 */
function hosting_site_data_schema() {
  $schema['hosting_site_data'] = array(
    'fields' => array(
      'vid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'site_data' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'vid' => array(
        'vid',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
hosting_site_data_schema Implements hook_schema().