Pass $params to 'select' hook

3.0-unstable version of #2448
Merge pull request #2449 from jamesgol/selecthook-3

Pass $params to 'select' hook