function tripal_contact_add_contact
2.x tripal_contact.DEPRECATED.inc | tripal_contact_add_contact($name, $description, $type, $properties) |
3.x tripal_contact.DEPRECATED.inc | tripal_contact_add_contact($name, $description, $type, $properties) |
1.x tripal_contact.api.inc | tripal_contact_add_contact($name, $description, $type, $properties) |
Deprecated
Restructured API to make naming more readable and consistent. Function was deprecated in Tripal 2.0 and will be removed 2 releases from now. This function has been replaced by tripal_insert_contact().
See also
File
- tripal_contact/
api/ tripal_contact.DEPRECATED.inc, line 141 - Wrapper functions to provide backwards compatibility for the tripal contact api
Code
function tripal_contact_add_contact($name, $description, $type, $properties) {
tripal_report_error(
'tripal_deprecated',
TRIPAL_NOTICE,
"DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
array(
'%old_function' => 'tripal_contact_add_contact',
'%new_function' => 'tripal_insert_contact'
)
);
return tripal_insert_contact(array(
'name' => $name,
'description' => $description,
'type_name' => $type,
'properties' => $properties
));
}