The hooks are a remarkable way to change the working of the framework without hacking the files.