function tripal_featuremap_property_get_description

1.x tripal_featuremap.form.inc tripal_featuremap_property_get_description()
1 string reference to 'tripal_featuremap_property_get_description'
tripal_featuremap_menu in tripal_featuremap/tripal_featuremap.module
Menu items are automatically added for the new node types created by this module to the 'Create Content' Navigation menu item. This function adds more menu items needed for this module.

File

tripal_featuremap/includes/tripal_featuremap.form.inc, line 490

Code

function tripal_featuremap_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-featuremap-new_value-desc">' . $description . '</div>',
  )
  );
}