You are here

user_relationship_elaborations.install in User Relationships 6

User Relationship Elaborations installation script Schema

File

user_relationship_elaborations/user_relationship_elaborations.install
View source
<?php

/**
 * @file User Relationship Elaborations installation script
 * Schema
 */
function user_relationship_elaborations_schema() {
  $schema['user_relationship_elaborations'] = array(
    'fields' => array(
      'rid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'elaboration' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'rid',
    ),
  );
  return $schema;
}

/**
 * Install
 */
function user_relationship_elaborations_install() {
  drupal_install_schema('user_relationship_elaborations');
}

/**
 * Uninstall
 */
function user_relationship_elaborations_uninstall() {
  drupal_uninstall_schema('user_relationship_elaborations');
  variable_del('user_relationships_elaborations_api_only');
}

Functions

Namesort descending Description
user_relationship_elaborations_install Install
user_relationship_elaborations_schema @file User Relationship Elaborations installation script Schema
user_relationship_elaborations_uninstall Uninstall