You are here

features_override.install in Features Override 7

Same filename and directory in other branches
  1. 6 features_override.install

File

features_override.install
View source
<?php

/**
 * Implements hook_schema().
 */
function features_override_schema() {
  $schema = array();
  $schema['features_override'] = array(
    'description' => 'Storage for user-defined features_override templates.',
    'export' => array(
      'key' => 'name',
      'identifier' => 'features_override',
      'default hook' => 'default_features_overrides',
      // Function hook name.
      'primary key' => 'name',
      'api' => array(
        'owner' => 'features_override',
        'api' => 'features_override',
        // Base name for api include files.
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
    'fields' => array(
      'name' => array(
        'description' => 'The primary identifier for a features override.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'description' => array(
        'description' => 'Description for this features override.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'component_type' => array(
        'description' => t('The override component type.'),
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'component_id' => array(
        'description' => t('The override component id.'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'value' => array(
        'description' => t('Serialized storage of override.'),
        'type' => 'text',
        'serialize' => TRUE,
      ),
    ),
    'indexes' => array(
      'component' => array(
        'component_type',
        'component_id',
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
features_override_schema Implements hook_schema().