function tripal_insert_contact
2.x tripal_contact.api.inc | tripal_insert_contact($values) |
3.x tripal_chado.module.DEPRECATED.api.inc | tripal_insert_contact($values) |
Adds a contact to the Chado contact table.
Parameters
$values: An array of values to be inserted. Valid keys include:
- name: The name of the contact.
- description: Text describing the contact.
- type_name: The type of contact. Must be a term in the tripal_contact vocabulary.
- properties: An associative array containing a list of key value pairs for the properites. The key's must be valid terms in the tripal_contact vocabulary (e.g. Affiliation, Address, etc).
Return value
On success, an array is returned containing the fields of the contact record including the newly added contact_id. On failure, FALSE is returned.
1 call to tripal_insert_contact()
- tripal_contact_add_contact in legacy/
tripal_contact/ api/ tripal_contact.DEPRECATED.inc
1 string reference to 'tripal_insert_contact'
- tripal_contact_add_contact in legacy/
tripal_contact/ api/ tripal_contact.DEPRECATED.inc
File
- tripal_chado/
api/ modules/ tripal_chado.module.DEPRECATED.api.inc, line 89 - These api functions are deprecated, if your site is currently using them please update your code with the newer tripal_chado functions.
Code
function tripal_insert_contact($values) {
chado_insert_contact($values);
}