Update the hook invoke method to follow the CiviCRM 4.5 conventions for
invoke.