function tripal_ws_remote_data_single_field_pull
3.x tripal_ws.module | tripal_ws_remote_data_single_field_pull($field, $entity_url) |
Related topics
File
- tripal_ws/
tripal_ws.module, line 449 - The Tripal Web Service Module
Code
function tripal_ws_remote_data_single_field_pull($field, $entity_url) {
$options = array();
$full_url = $entity_url . '/' . $field;
$data = drupal_http_request($full_url, $options);
if (!empty($data)) {
$data = drupal_json_decode($data->data);
}
return $data;
}