enabling and defining hooks in config.php and hooks.php