Force the system to rebuild the theme registry; this should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks.
function drupal_theme_rebuild() {
drupal_static_reset('theme_get_registry');
cache()
->invalidateTags(array(
'theme_registry' => TRUE,
));
}