Results
23.06.2020
rocketship_core 8.x-2.0-alpha11 ::
rocketship_core.module
/**
* Implements hook_theme_registry_alter().
*/
function rocketship_core_theme_registry_alter(&$theme_registry) {
$layouts = \Drupal::service('plugin.manager.core.layout')->getDefinitions();
$layout_theme_hooks = [];
/** @var \Drupal\Core\Layout\LayoutDefinition $info */
foreach ($layouts as $info) {
if ($info->getCategory() == 'Rocketship Layouts - Display Suite') { 07.10.2018
scmsg 8.x-1.1 ::
simple_cool_message.module
/**
* Implements hook_theme_registry_alter().
*/
function simple_cool_message_theme_registry_alter(&$theme_registry) {
$coolmessage_enable = \Drupal::config('simple_cool_message.simple_cool_message')->get('simple_coolmessage_enable');
if($coolmessage_enable){
$theme_registry['status_messages']['function'] = 'simple_cool_message_status_messages';
}
} 21.02.2018
simplelogin 8.x-1.0 ::
simplelogin.module
/**
* Implements hook_theme_registry_alter().
*/
function simplelogin_theme_registry_alter(&$theme_registry) {
$module_path = drupal_get_path('module', 'simplelogin');
$theme_registry['page__simplelogin'] = array(
'template' => $module_path . '/templates/page--simplelogin',
'type' => 'theme_engine',
'theme path' => $module_path . '/templates',
'render element' => 'page', 08.01.2018
slides_presentation 8.x-1.x-dev ::
slides_presentation.module
/**
* Implements hook_theme_registry_alter().
*/
function slides_presentation_theme_registry_alter(&$theme_registry) {
$theme_registry['sitemap']['path'] = drupal_get_path('module', 'slides_presentation') . '/templates';
}
/**
* Implements hook_entity_operation().
*/ 16.03.2019
uswds_base 8.x-2.0-alpha1 ::
includes/base_themes.inc
/**
* Implements hook_theme_registry_alter().
*/
function uswds_base_theme_registry_alter(&$registry) {
$trail = uswds_base_theme_trail();
// For the purpose of this, we want the theme trail in reverse order: from
// root base theme to active theme. This way we can let base themes run their
// functions before the active theme.
$trail = array_reverse($trail); 16.05.2022
wetboew_webform_example 1.0.x-dev ::
wetboew_webform_example.module
/**
* Implements hook_theme_registry_alter().
*/
function wetboew_webform_example_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['form_element_label__wetboew']['path'])) {
if (stripos($theme_registry['form_element_label__wetboew']['path'], 'label') <= 0) {
// Tell the theming system to look in this modules templates/label folder for the twig file.
$theme_registry['form_element_label__wetboew']['path'] = $theme_registry['form_element_label__wetboew']['path'] . '/label';
}
} 13.10.2020
contacts_events 8.x-1.x-dev ::
modules/printing/contacts_events_printing.module
/**
* Implements hook_theme_registry_alter().
*
* Add ticket printing specific page template alter suggestion.
*/
function contacts_events_printing_theme_registry_alter(&$theme_registry) {
$theme_registry['page__booking__ticket__render'] = [
'template' => 'page--booking--ticket--render',
'path' => drupal_get_path('module', 'contacts_events_printing') . '/templates',
'base hook' => 'page',
];
} 08.02.2024
advanced_maintenance_page 1.0.0 ::
advanced_maintenance_page.module
/**
* Implements hook_theme_registry_alter().
*/
function advanced_maintenance_page_theme_registry_alter(&$theme_registry) {
$config = \Drupal::config('system.maintenance');
if($config->get('enable_advanced_options')) {
$theme_registry['maintenance_page']['path'] = \Drupal::service('extension.list.module')->getPath('advanced_maintenance_page') . '/templates';
}
} 24.11.2023
contacts_subscriptions 1.x-dev ::
contacts_subscriptions.module
/**
* Implements hook_theme_registry_alter().
*/
function contacts_subscriptions_theme_registry_alter(&$theme_registry) {
// Ensure our preprocess runs after any others.
if (isset($theme_registry['input']['preprocess functions'])) {
$preprocesses = $theme_registry['input']['preprocess functions'];
if ($key = array_search('contacts_subscriptions_preprocess_input', $preprocesses)) { 25.02.2024
ept_core 1.4.2 ::
ept_core.module
/**
* Implements hook_theme_registry_alter().
*/
function ept_core_theme_registry_alter(&$theme_registry) {
$module_list = \Drupal::service('extension.list.module')->getList();
$ept_modules = [];
foreach ($module_list as $module_name => $extention) {
if ($module_name == 'ept_core') {
continue;
} 26.02.2024
message_notification 1.0.1-beta1 ::
message_notification.module
/**
* Implements hook_theme_registry_alter().
*/
function message_notification_theme_registry_alter(array &$theme_registry) {
if (isset($theme_registry['message__notification'])) {
$theme_registry['message__notification']['path'] = \Drupal::service('module_handler')->getModule('message_notification')->getPath() . '/templates';
$theme_registry['message__notification']['template'] = 'message--notification';
}
} 28.03.2024
module_instructions 2.0.x-dev ::
module_instructions.module
/**
* Implements hook_theme_registry_alter().
*/
function module_instructions_theme_registry_alter(&$theme_registry) {
if (!empty($theme_registry['system_modules_details']) &&
\Drupal::currentUser()->hasPermission('access module instruction files')
) {
$path = \Drupal::service('extension.path.resolver')->getPath('module', 'module_instructions') . '/templates';
$theme_registry['system_modules_details']['path'] = $path;
} 29.07.2024
cincopa 8.x-1.x-dev ::
cincopa.module
/**
* Implements hook_theme_registry_alter().
*/
function cincopa_theme_registry_alter(array &$theme_registry) {
$theme_registry['status_messages']['function'] = 'cincopa_display_messages';
}
/**
* Callback for rendering the status message.
* 06.12.2024
skinr 8.x-2.0-alpha2 ::
skinr_panels/skinr_panels.module
/**
* Implements hook_theme_registry_alter().
*
* Re-order preprocess functions to prioritize skinr_ui_preprocess, which adds
* contextual links, over template_preprocess_HOOK functions. This fixes a
* problem with the way panels handles contextual links.
*/
function skinr_panels_theme_registry_alter(&$theme_registry) {
$preprocess_functions = array();
foreach ($theme_registry['panels_pane']['preprocess functions'] as $function) {
if ($function == 'skinr_ui_preprocess' || $function == 'skinr_panels_preprocess') {
continue;
} 11.01.2025
ai_upgrade_assistant 0.2.0-alpha2 ::
src/Service/NodeVisitor/HookVisitor.php
],
// Theme hooks
'hook_theme_registry_alter' => [
'replacement' => 'hook_theme_registry_info_alter',
'version' => '10.0.0',
'critical' => false,
],
// Token hooks
'hook_tokens' => [ 13.01.2025
fieldry 1.0.x-dev ::
src/Plugin/FieldryWrapperManagerInterface.php
* * Get the list of all theme hooks used by fieldry wrappers. This is used in * the fieldry hook_theme_registry_alter() to ensure they all include the * default field preprocess callbacks so baseline field variables are applied. * * @return string[] * Names of all the theme hooks (e.g. "fieldry_wrapper") used by all the * fieldry wrapper plugins. *
* fieldry wrapper plugins. * * @see fieldry_theme_registry_alter() */ public function getThemeHooks(): array; /** * Fetch the list of field wrappers that apply. *
11.04.2025
custom_status_report 1.0.0 ::
custom_status_report.module
/**
* Implements hook_theme_registry_alter().
*/
function custom_status_report_theme_registry_alter(&$theme_registry) {
$module_path = \Drupal::service('extension.list.module')->getPath('custom_status_report');
$theme_registry['status_report_general_info']['path'] = $module_path . '/templates';
$theme_registry['status_report_general_info']['variables']['cards'] = [];
}
/** 16.04.2025
unused_media_filter 1.0.x-dev ::
unused_media_filter.module
/**
* Implements hook_theme_registry_alter().
*/
function unused_media_filter_theme_registry_alter(&$theme_registry) {
$theme_registry['views_view']['preprocess functions'] = array_diff($theme_registry['views_view']['preprocess functions'], ['unused_media_filter_preprocess_views_view']);
$theme_registry['views_view']['preprocess functions'][] = 'unused_media_filter_preprocess_views_view';
}
/**
* Implements hook_views_data_alter(). 29.08.2025
dsfr_typesense 2.1.x-dev ::
dsfr_typesense.module
/**
* Implements hook_theme_registry_alter().
*/
function dsfr_typesense_theme_registry_alter(&$theme_registry) {
$dt_path = \Drupal::service('extension.path.resolver')->getPath('module', 'dsfr_typesense');
$theme_registry['search_api_typesense_converse']['path'] = $dt_path . '/templates';
$theme_registry['search_api_typesense_search']['path'] = $dt_path . '/templates';
} 16.09.2025
inky_integration 1.0.1 ::
inky_integration.module
/**
* Implements hook_theme_registry_alter().
*/
function inky_integration_theme_registry_alter(&$theme_registry) {
// custom template töltődjön be admin témában is a commentek megjelenítéséhez
/** @var \Drupal\Core\Extension\ModuleHandlerInterface $module_handler */
$module_handler = \Drupal::service('module_handler');
$module_path = $module_handler->getModule('inky_integration')->getPath();
$theme_registry['email_wrap']['path'] = $module_path . '/templates';
} 