diff options
Diffstat (limited to 'modules/contact/contact.admin.inc')
-rw-r--r-- | modules/contact/contact.admin.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/contact/contact.admin.inc b/modules/contact/contact.admin.inc index 6d643c21e..a212db52b 100644 --- a/modules/contact/contact.admin.inc +++ b/modules/contact/contact.admin.inc @@ -19,7 +19,13 @@ function contact_category_list() { $rows = array(); // Get all the contact categories from the database. - $categories = db_query('SELECT cid, category, recipients, selected FROM {contact} ORDER BY weight, category')->fetchAll(); + $categories = db_select('contact', 'c') + ->addTag('translatable') + ->fields('c', array('cid', 'category', 'recipients', 'selected')) + ->orderBy('weight') + ->orderBy('category') + ->execute() + ->fetchAll(); // Loop through the categories and add them to the table. foreach ($categories as $category) { |