You are here

function hook_i18n_translation_set_info in Internationalization 7

Provide information about translation sets and involved objects.

This feature relies on object information provided by i18n_object_info().

See also

i18n_translation_set_info()

hook_i18n_object_info()

3 functions implement hook_i18n_translation_set_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

i18n_menu_i18n_translation_set_info in i18n_menu/i18n_menu.i18n.inc
Implements hook_i18n_translation_set_info()
i18n_path_i18n_translation_set_info in i18n_path/i18n_path.module
Implements hook_i18n_translation_set_info()
i18n_taxonomy_i18n_translation_set_info in i18n_taxonomy/i18n_taxonomy.i18n.inc
Implements hook_i18n_translation_set_info()
1 invocation of hook_i18n_translation_set_info()
i18n_translation_set_info in i18n_translation/i18n_translation.module
Get information about translation sets

File

i18n_translation/i18n_translation.api.php, line 19
API documentation for Internationalization module

Code

function hook_i18n_translation_set_info() {
  $info['taxonomy_term'] = array(
    'title' => t('Taxonomy term'),
    // The class that handles this translation sets
    'class' => 'i18n_taxonomy_translation_set',
    // Table and field into that table that keeps the translation set id for each item.
    'table' => 'taxonomy_term_data',
    'field' => 'i18n_tsid',
    // This is the parent object (i18n object type).
    'parent' => 'taxonomy_vocabulary',
    // Placeholders and path information for generating translation set pages for administration.
    'placeholder' => '%i18n_taxonomy_translation_set',
    'list path' => 'admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/list/sets',
    'edit path' => 'admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/list/sets/edit/%i18n_taxonomy_translation_set',
    'delete path' => 'admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/list/sets/delete/%i18n_taxonomy_translation_set',
    'page callback' => 'i18n_taxonomy_term_translation_page',
  );
  return $info;
}