Named hooks in interfaces. Bugfixes #966.
Merge pull request #1161 from wejendorp/master

Add named hooks in interfaces. (fix #966)