function contact_load
7.x contact.module | contact_load($cid) |
6.x contact.module | contact_load($cid) |
Loads a contact category.
Parameters
$cid: The contact category ID.
Return value
An array with the contact category's data.
1 call to contact_load()
- contact_site_form_submit in drupal-7.x/
modules/ contact/ contact.pages.inc - Form submission handler for contact_site_form().
File
- drupal-7.x/
modules/ contact/ contact.module, line 156 - Enables the use of personal and site-wide contact forms.
Code
function contact_load($cid) {
return db_select('contact', 'c')
->addTag('translatable')
->fields('c')
->condition('cid', $cid)
->execute()
->fetchAssoc();
}