function tripal_contact_insert_property

2.x tripal_contact_insert_property($contact_id, $property, $value, $update_if_present = 0)
1.x tripal_contact_insert_property($contact_id, $property, $value, $update_if_present = 0)

Insert a given property


$contact_id: The contact_id of the property to insert

$property: The cvterm name of the property to insert

$value: The value of the property to insert

$update_if_present: A boolean indicated whether to update the record if it's already present

Return value

True of success, False otherwise

Related topics

3 calls to tripal_contact_insert_property()
chado_contact_insert in tripal_contact/tripal_contact.module
Implementation of tripal_contact_insert().
chado_contact_update in tripal_contact/tripal_contact.module
tripal_contact_add_contact in tripal_contact/api/
Adds a contact to the Chado contact table


tripal_contact/api/, line 44
Provides an application programming interface (API) to manage libraries


function tripal_contact_insert_property($contact_id, $property, $value, $update_if_present = 0) {
  return tripal_core_insert_property('contact', $contact_id, $property, 'tripal_contact', $value, $update_if_present);