You are here

function tmgmt_language_combination_field_schema in Translation Management Tool 7

Implements hook_field_schema().

File

translators/tmgmt_local/skills/tmgmt_language_combination.module, line 23

Code

function tmgmt_language_combination_field_schema($field) {
  $schema = array(
    'columns' => array(
      'language_from' => array(
        'description' => 'The langcode of the language from which the user is able to translate.',
        'type' => 'varchar',
        'length' => 10,
      ),
      'language_to' => array(
        'description' => 'The langcode of the language to which the user is able to translate.',
        'type' => 'varchar',
        'length' => 10,
      ),
    ),
    'indexes' => array(
      'language' => array(
        'language_from',
        'language_to',
      ),
    ),
  );
  return $schema;
}