Issue #2366583 by rpayanm: Move hooks from system.api.php to new module.api.php file