summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-25 10:58:32 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-25 10:58:32 +0000
commit75722e4f198bacae019fcf852c3f358b18a45e5c (patch)
treee4c1d8fae32ab7a310e446ee8e89b8d77d66c1e3 /modules/blogapi/blogapi.install
parent59422f6ae0bf8ef7b1942a52e72eb3c6cd0b2592 (diff)
downloadbrdo-75722e4f198bacae019fcf852c3f358b18a45e5c.tar.gz
brdo-75722e4f198bacae019fcf852c3f358b18a45e5c.tar.bz2
- Patch #537434 by chx, bangpound, moshe weitzman, David Strauss: move the blog API module to contrib.
Diffstat (limited to 'modules/blogapi/blogapi.install')
-rw-r--r--modules/blogapi/blogapi.install69
1 files changed, 0 insertions, 69 deletions
diff --git a/modules/blogapi/blogapi.install b/modules/blogapi/blogapi.install
deleted file mode 100644
index 2bbcd57a3..000000000
--- a/modules/blogapi/blogapi.install
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-// $Id$
-
-/**
- * @file
- * Install, update and uninstall functions for the blogapi module.
- */
-
-/**
- * Implement hook_install().
- */
-function blogapi_install() {
- // Create tables.
- drupal_install_schema('blogapi');
-}
-
-/**
- * Implement hook_uninstall().
- */
-function blogapi_uninstall() {
- // Remove tables.
- drupal_uninstall_schema('blogapi');
-}
-
-
-/**
- * Implement hook_schema().
- */
-function blogapi_schema() {
- $schema['blogapi_files'] = array(
- 'description' => 'Stores information for files uploaded via the blogapi.',
- 'fields' => array(
- 'fid' => array(
- 'description' => 'Primary Key: Unique file ID.',
- 'type' => 'serial',
- ),
- 'uid' => array(
- 'description' => 'The {users}.uid of the user who is associated with the file.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'filepath' => array(
- 'description' => 'Path of the file relative to Drupal root.',
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- ),
- 'filesize' => array(
- 'description' => 'The size of the file in bytes.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- ),
- 'primary key' => array('fid'),
- 'indexes' => array(
- 'uid' => array('uid'),
- ),
- 'foreign keys' => array(
- 'uid' => array('users' => 'uid'),
- ),
- );
-
- return $schema;
-}