You are here

function globallink_webform_get_row in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_webform/globallink_webform.inc \globallink_webform_get_row()

Retrieves webform's row by ID.

Parameters

string $object_id: The object ID.

string $object_type: The object type.

string $source: The target source.

string $target: The target.

Return value

The row if webform exists.

1 call to globallink_webform_get_row()
globallink_webform_update_ticket_id in globallink_webform/globallink_webform.inc
Updates webform ticket ID.

File

globallink_webform/globallink_webform.inc, line 518

Code

function globallink_webform_get_row($object_id, $object_type, $source, $target) {
  $result = db_select('globallink_core_webform', 'tcw')
    ->fields('tcw')
    ->condition('object_id', $object_id, '=')
    ->condition('object_type', $object_type, '=')
    ->condition('source', $source, '=')
    ->condition('target', $target, '=')
    ->execute();
  foreach ($result as $row) {
    return $row;
  }
  return FALSE;
}