home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (taxonomy_test.install)

This example Drupal source code file (taxonomy_test.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

antonym, array, default, description, function, name, null, of, php, term, the, true, type

The taxonomy_test.install Drupal example source code

<?php
// $Id: taxonomy_test.install,v 1.10 2009/12/04 16:49:47 dries Exp $

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

/**
 * Implements hook_schema().
 */
function taxonomy_test_schema() {
  $schema['taxonomy_term_antonym'] = array(
    'description' => 'Stores term antonym.',
    'fields' => array(
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {taxonomy_term_data}.tid of the term.',
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The name of the antonym.',
      ),
    ),
    'primary key' => array('tid'),
  );

  return $schema;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal taxonomy_test.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.