contact_load

Versions
6 – 7
contact_load($cid)

Load a contact category.

Parameters

$cid The contact category ID.

Return value

An array with the contact category's data.

Code

modules/contact/contact.module, line 157

<?php
function contact_load($cid) {
  return db_query("SELECT * FROM {contact} WHERE cid = :cid", array(':cid' => $cid))->fetchAssoc();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.