function contact_load

contact_load($cid)

Loads a contact category.

Parameters

$cid: The contact category ID.

Return value

An array with the contact category's data.

File

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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!contact!contact.module/function/contact_load/7.x