function microdata_theme_registry_alter in Microdata 7
Implements hook_theme_registry_alter().
File
- ./
microdata.module, line 155
Code
function microdata_theme_registry_alter(&$theme_registry) {
// Remove RDFa-related preprocess functions.
$rdf_preprocess_hooks = array(
'node',
'field',
'user_profile',
'username',
'comment',
'taxonomy_term',
'image',
);
foreach ($rdf_preprocess_hooks as $hook) {
// In some cases the preprocess functions aren't attached yet, see #1376920.
if (isset($theme_registry[$hook]) && isset($theme_registry[$hook]['preprocess functions'])) {
$key = array_search('rdf_preprocess_' . $hook, $theme_registry[$hook]['preprocess functions']);
if (!empty($key)) {
unset($theme_registry[$hook]['preprocess functions'][$key]);
}
}
}
}