Pass $params to 'select' hook

Most of the other hooks pass $params as well, this allows the filter to be a bit more useful and won't break anything
Merge pull request #2448 from jamesgol/selecthook

Pass $params to 'select' hook