function entity_translation_language_tabs_render in Entity Translation 7
Pre render callback.
Appends the language tabs to the current local tasks area.
1 string reference to 'entity_translation_language_tabs_render'
- entity_translation_preprocess_page in ./
entity_translation.module - Preprocess variables for 'page.tpl.php'.
File
- ./
entity_translation.module, line 1668
Code
function entity_translation_language_tabs_render($element) {
$build = array(
'#theme' => 'menu_local_tasks',
'#theme_wrappers' => array(
'entity_translation_language_tabs',
),
'#secondary' => $element['#language_tabs'],
'#attached' => array(
'css' => array(
drupal_get_path('module', 'entity_translation') . '/entity-translation.css',
),
),
);
$element['#suffix'] .= drupal_render($build);
return $element;
}