You are here

function borealis_sb_schema in Borealis 7

Same name and namespace in other branches
  1. 7.2 borealis_sb/borealis_sb.install \borealis_sb_schema()

Implements hook_schema().

File

borealis_sb/borealis_sb.install, line 10

Code

function borealis_sb_schema() {
  $schema['borealis_sb'] = array(
    'description' => 'Stores Semantic settings for blocks.',
    'fields' => array(
      'uid' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => "Generated UID for module_delta combo.",
      ),
      'module' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
        'description' => "The module from which the block originates; for example, 'user' for the Who's Online block, and 'block' for any custom blocks.",
      ),
      'delta' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '0',
        'description' => 'Unique ID for block within a module.',
      ),
      'semantics' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The semantic wrapper to apply.',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
    'export' => array(
      'key' => 'uid',
      'identifier' => 'semantic_wrapper',
      // Exports will be available as $tag
      'default hook' => 'default_semantic_wrapper',
      // Function hook name.
      'api' => array(
        'owner' => 'borealis_sb',
        'api' => 'borealis_sb_default',
        // Base name for api include files.
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
  );
  return $schema;
}