function easy_social_theme_registry_alter in Easy Social 8.4
Same name and namespace in other branches
- 8.3 easy_social.module \easy_social_theme_registry_alter()
Implements hook_theme_registry_alter().
Adds our custom preprocess to all widget's theme functions.
See also
_easy_social_preprocess_widget()
File
- ./
easy_social.module, line 368 - Easy Social module.
Code
function easy_social_theme_registry_alter(&$theme_registry) {
foreach ($theme_registry as $key => $value) {
if (strpos($key, 'easy_social_') === 0) {
array_unshift($theme_registry[$key]['preprocess functions'], '_easy_social_preprocess_widget');
}
}
}