You are here

shurly_service.install in ShURLy 7

File

shurly_service/shurly_service.install
View source
<?php

/**
 * @file
 */

/**
 * Implement hook_schema().
 */
function shurly_service_schema() {
  $schema['shurly_keys'] = array(
    'description' => t('API keys for use with the Shurly module'),
    'fields' => array(
      'uid' => array(
        'description' => t('User ID'),
        'type' => 'int',
        'not null' => TRUE,
      ),
      'apikey' => array(
        'description' => t('API key for user'),
        'type' => 'varchar',
        'length' => '35',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'apikey',
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
shurly_service_schema Implement hook_schema().