You are here

entity_share_ui_client.install in Entity Share 7

Install, update, and uninstall functions for the Entity Share UI module.

File

modules/entity_share_ui/modules/entity_share_ui_client/entity_share_ui_client.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the Entity Share UI module.
 */

/**
 * Implements hook_schema().
 */
function entity_share_ui_client_schema() {
  $schema['entity_share_endpoints'] = array(
    'description' => 'Table containing endpoints',
    'fields' => array(
      'eid' => array(
        'description' => 'Serial id for the endpoint. Internal usage',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'description' => 'Machine name of this endpoint',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'title' => array(
        'description' => 'Administrative title for this endpoint',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'description' => array(
        'description' => 'Administrative description for this endpoint',
        'type' => 'text',
        'size' => 'medium',
        'not null' => TRUE,
      ),
      'url' => array(
        'description' => 'URL of the endpoint',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'login' => array(
        'description' => 'Login of the endpoint',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'password' => array(
        'description' => 'Password of the endpoint',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'enabled' => array(
        'description' => 'Endpoint enabled or not',
        'type' => 'int',
        'length' => 128,
        'not null' => TRUE,
        // Enabled by default.
        'default' => 1,
      ),
      'debug' => array(
        'description' => 'Debug mode',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'eid',
    ),
    'indexes' => array(
      'name' => array(
        'name',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
entity_share_ui_client_schema Implements hook_schema().