Trying to do something fairly simple, using the Panopoly distro.
Basically, I'm trying to implement hook_wysiwyg_editor_settings_alter(). Within the Panopoly distro, the panopoly_wysiwyg module also implements the hook.
So if I have this structure,
/profiles/panopoly/modules/panopoly/panopoly_wysiwyg /sites/all/modules/contrib/wysiwyg_button_order /sites/all/modules/custom/my_module
No matter how I set the module weights, the hook fires in the order
Within the directory, execution is in alphabetical order. I've tested this by moving my_module into sites/all/modules/contrib and profiles/panopoly/modules/panopoly.
Is this a bug in Drupal? Am I missing something? I've tried to use hook_module_implements_alter() but that doesn't fire at all.
If I call modules_list(), it shows the modules in the expected order, but the hook doesn't fire in that order.