Updated Module.php with new function

This change would allow developers to easily be able to register multiple hooks with less work than previously required.