Fix for Issue #3367

Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
Merge pull request #5082 from crazyscience/patch-2

Fix for Issue #3367