Commit 153533c7 authored by Paris Liakos's avatar Paris Liakos

Issue #1470018 by plach and bforchhammer: Provide Entity Translation integration

parent 550cb284
......@@ -10,6 +10,7 @@ files[] = includes/MediaBrowserPluginInterface.inc
files[] = includes/MediaBrowserPlugin.inc
files[] = includes/MediaBrowserUpload.inc
files[] = includes/MediaBrowserView.inc
files[] = includes/MediaEntityTranslationHandler.inc
files[] = includes/media_views_plugin_display_media_browser.inc
files[] = includes/media_views_plugin_style_media_browser.inc
files[] = tests/media.test
......
......@@ -85,6 +85,11 @@ function media_entity_info_alter(&$entity_info) {
$entity_info['file']['view modes']['media_small'] = array('label' => t('Small'), 'custom settings' => TRUE);
$entity_info['file']['view modes']['media_large'] = array('label' => t('Large'), 'custom settings' => TRUE);
$entity_info['file']['view modes']['media_original'] = array('label' => t('Original'), 'custom settings' => TRUE);
if (module_exists('entity_translation')) {
$entity_info['file']['translation']['entity_translation']['class'] = 'MediaEntityTranslationHandler';
$entity_info['file']['translation']['entity_translation']['path schemes']['media'] = array('edit path' => 'media/%file/edit/%ctools_js');
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment