You are here

function i18nblocks_schema in Internationalization 6

Implementation of hook_schema().

File

i18nblocks/i18nblocks.install, line 29
Installation file for i18nblocks module.

Code

function i18nblocks_schema() {
  $schema['i18n_blocks'] = array(
    'description' => 'Special i18n translatable blocks.',
    'fields' => array(
      'ibid' => array(
        'description' => 'The i18n block identifier.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'module' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => "The block's origin module, from {blocks}.module.",
      ),
      'delta' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '0',
        'description' => 'Unique ID for block within a module.',
      ),
      'type' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Block type.',
      ),
      'language' => array(
        'type' => 'varchar',
        'length' => 12,
        'description' => 'Block language.',
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'ibid',
    ),
  );
  return $schema;
}