function tripal_contact_property_get_description
1.x tripal_contact.form.inc | tripal_contact_property_get_description() |
1 string reference to 'tripal_contact_property_get_description'
- tripal_contact_menu in tripal_contact/
tripal_contact.module - Tripal-contact-Menu
File
- tripal_contact/
includes/ tripal_contact.form.inc, line 531
Code
function tripal_contact_property_get_description() {
$new_id = $_POST['new_id'];
$values = array('cvterm_id' => $new_id);
$cvterm = tripal_core_chado_select('cvterm', array('definition'), $values);
$description = ' ';
if ($cvterm[0]->definition) {
$description = $cvterm[0]->definition;
}
drupal_json(
array(
'status' => TRUE,
'data' => '<div id="tripal-contact-new_value-desc">' . $description . '</div>',
)
);
}