-function key_in_crm_contacts($id) // extra function for testing foreign concatenated key. Joe 02.09.2013.
-{
- $row = get_crm_category($id);
- $sql = "SELECT COUNT(*) FROM ".TB_PREF."crm_contacts WHERE type='".$row['type']."' AND action='".$row['action']."'";
- $result = db_query($sql, "check relations for crm_contacts failed");
- $contacts = db_fetch($result);
- return $contacts[0];
-}
-