function i18n_block_schema in Internationalization 7
Implements hook_schema().
File
- i18n_block/
i18n_block.install, line 33 - Installation file for i18nblocks module.
Code
function i18n_block_schema() {
$schema['i18n_block_language'] = array(
'description' => 'Sets block visibility based on language',
'fields' => array(
'module' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'description' => "The block's origin module, from {block}.module.",
),
'delta' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'description' => "The block's unique delta within module, from {block}.delta.",
),
'language' => array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
'description' => "Language code, e.g. 'de' or 'en-US'.",
),
),
'primary key' => array(
'module',
'delta',
'language',
),
'indexes' => array(
'language' => array(
'language',
),
),
);
return $schema;
}