I've updated the query used for 'function hosting_get_servers()' to use the new db_select() function in Drupal7.
This also allowed me to add the "node_access" tag very easily, which was something that we needed.
Patch and branch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2709565-server-db-select.patch | 1.03 KB | jon pugh |
Comments
Comment #3
jon pughComment #5
helmo commentedThanks.
Comment #6
ergonlogicJust a follow-up note: let's try to reduce our use of magic numbers. Presumably, '
s.available' here is just a boolean, so perhaps we could useTRUEinstead. Alternatively,define('HOSTING_SERVER_AVAILABLE', 1);, or whatever we'd want to name the constant.