summaryrefslogtreecommitdiff
path: root/modules/contact/contact.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/contact/contact.module')
-rw-r--r--modules/contact/contact.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index d3ef4ce7d..2bbf816bf 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -159,7 +159,12 @@ function _contact_personal_tab_access(stdClass $account) {
* An array with the contact category's data.
*/
function contact_load($cid) {
- return db_query("SELECT * FROM {contact} WHERE cid = :cid", array(':cid' => $cid))->fetchAssoc();
+ return db_select('contact', 'c')
+ ->addTag('translatable')
+ ->fields('c')
+ ->condition('cid', $cid)
+ ->execute()
+ ->fetchAssoc();
}
/**