You are here

feeds_atom.install in Feeds Atom 6

Same filename and directory in other branches
  1. 7 feeds_atom.install

Install and uninstall schema and functions for the feeds_atom module.

File

feeds_atom.install
View source
<?php

/**
 * @file
 *   Install and uninstall schema and functions for the feeds_atom module.
 */

/**
 * Implementation of hook_install().
 */
function feeds_atom_install() {
  drupal_install_schema('feeds_atom');
}

/**
 * Implementation of hook_schema().
 */
function feeds_atom_schema() {
  $schema['feeds_atom_file_import'] = array(
    'fields' => array(
      'fid' => array(
        'description' => t('The file id that we have imported.'),
        'type' => 'int',
        'not null' => TRUE,
      ),
      'sha1' => array(
        'description' => t('sha1 hash of this file.'),
        'type' => 'varchar',
        'length' => '40',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'fid',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_install().
 */
function feeds_atom_uninstall() {
  drupal_uninstall_schema('feeds_atom');
}

Functions

Namesort descending Description
feeds_atom_install Implementation of hook_install().
feeds_atom_schema Implementation of hook_schema().
feeds_atom_uninstall Implementation of hook_install().