You are here

calendar_systems.install in Calendar Systems 6.3

File

calendar_systems.install
View source
<?php

/**
 * Implementation of hook_schema().
 */
function calendar_systems_schema() {
  $schema = array();
  $schema['calendar_systems'] = array(
    'description' => t('Stores calendar_systems profiles.'),
    'fields' => array(
      'language' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'calendar_system' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'settings' => array(
        'type' => 'text',
        'size' => 'normal',
      ),
    ),
    'primary key' => array(
      'language',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_install().
 */
function calendar_systems_install() {
  drupal_install_schema('calendar_systems');
}

/**
 * Implementation of hook_uninstall()
 */
function calendar_systems_uninstall() {
  drupal_uninstall_schema('calendar_systems');
}

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

Functions

Namesort descending Description
calendar_systems_enable Implementation of hook_enable().
calendar_systems_install Implementation of hook_install().
calendar_systems_schema Implementation of hook_schema().
calendar_systems_uninstall Implementation of hook_uninstall()