I was working on cleaning up some very very old code (I think v6 or v7)
As I do that I wanted to be more consistent with naming conventions
The original logic hook was
$hook_array['process_record'][] = Array(1,'conditional_formatting','custom/modules/Cases/conditional_formatting.php','ConditionalFormatting','conditional_formatting');
The cleaned up one was using camel case for the function, and a better name for the file
$hook_array['process_record'][] = array( 1, 'conditionalFormatting', 'custom/modules/Cases/Cases_ConditionalFormatting_Logic.php', 'ConditionalFormatting', 'conditionalFormatting');
Of course the class and the function names were changed consistently in the new file, the old file was removed.
I did a QRR, cleared cache etc... the logic_hook refuses to fire with the new names. I put a fatal log entry at the start of the hook function, nothing in the log.
If all I do is change the name of the refactored file, name of the function and name of the class to the old ones then everything runs smoothly.
Why would that be? How can renaming something (consistently I might add) break it?
It's puzzling...
FrancescaS