You are here

feeds_atom.install in Feeds Atom 7

Same filename and directory in other branches
  1. 6 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.
 */

/**
 * Implements hook_install().
 */
function feeds_atom_install() {

  // @todo The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_install_schema('feeds_atom')
}

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

Functions

Namesort descending Description
feeds_atom_install Implements hook_install().
feeds_atom_schema Implements hook_schema().