Issue #2352251 by netw3rker: Fix incorrect hook name in libraries.api.php