Fix hook.php with the right function and var names.
Fix example.config.php with the right function and var names.