Let's move hook to new file (LicensedVideoSwapHooksHelper.class.php). public static function onPageHeaderIndexExtraButtons( $response )