Update hooks.php

Fixing uid not recognized in request