Commit dae743b5 authored by aroq's avatar aroq Committed by Neil Hastings
Browse files

Issue #1302224 by aroq: Make bean entities translatable by entity_translate module

parent c96e6d3f
Loading
Loading
Loading
Loading
+18 −0
Changes for bean.module: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ function bean_entity_info() {
      'entity keys' => array(
        'id' => 'bid',
        'bundle' => 'type',
        'label' => 'title',
      ),
      'bundles' => array(),
      'bundle keys' => array(
@@ -49,6 +50,23 @@ function bean_entity_info() {
  return $return;
}

/**
 * Implements hook_translation_info().
 */
function bean_translation_info($types = NULL) {
  $info = array(
    'bean' => array(
      'translation' => array(
        'entity_translation' => array(
          'base path' => 'block/%bean',
        ),
      ),
    ),
  );

  return isset($types) ? array_intersect_key($info, $types) : $info;
}

/**
 * Implements hook_menu().
 */