I have a custom module which invokes the hook_theme_registry_alter() to modify the presentation of some input fields.
However, I've discovered that the overridden styling is affecting ALL input fields on my entire site.
This is not good!
How to I make it so that my implementation of the hook_theme_registry_alter() is only seen on my module's pages?
Here is my function, and it is applying the theming functions to ALL radio and form elements on our site.
function MY_MODULE_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['radio'])) {
$theme_registry['radios']['function'] = "MY_MODULE_radios";
$theme_registry['radio']['function'] = "MY_MODULE_radio";
$theme_registry['form_element']['function'] = "MY_MODULE_element";
}
}