Projet

Général

Profil

Révision e0d35157

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module
1234 1234
 * Implements hook_entity_info_alter().
1235 1235
 */
1236 1236
function i18n_taxonomy_entity_info_alter(&$entity_info) {
1237
  if (isset($entity_info['taxonomy_vocabulary'])) {
1238
    // Add altered vocabulary schema fields.
1239
    $entity_info['taxonomy_vocabulary']['schema_fields_sql']['base table'][] = 'i18n_mode';
1240
    $entity_info['taxonomy_vocabulary']['schema_fields_sql']['base table'][] = 'language';
1241
  }
1237 1242
  if (isset($entity_info['taxonomy_term'])) {
1238 1243
    // Core doesn't provide a label callback for taxonomy terms. By setting one
1239 1244
    // we can use it to return the correct localized term name.

Formats disponibles : Unified diff