function layout_builder_at_theme_registry_alter in Layout Builder Asymmetric Translation 8.2
Implements hook_theme_registry_alter().
File
- ./
layout_builder_at.module, line 27 - Provides hook implementations for Layout Builder Asymmetric Translation.
Code
function layout_builder_at_theme_registry_alter(&$theme_registry) {
// Removes layout_builder_preprocess_language_content_settings_table() to
// remove the 'Non translatable' warning.
if (!empty($theme_registry['language_content_settings_table']['preprocess functions'])) {
$preprocess_functions =& $theme_registry['language_content_settings_table']['preprocess functions'];
$index = array_search('layout_builder_preprocess_language_content_settings_table', $preprocess_functions);
if ($index !== FALSE) {
unset($preprocess_functions[$index]);
}
}
}