You are here

function globallink_bean_get_row in GlobalLink Connect for Drupal 7.6

Retrieves bean's row by ID.

Parameters

string $bid: The bean row ID.

string $source: The bean source.

string $target: The bean target.

Return value

The row if bean exists. FALSE if not.

1 call to globallink_bean_get_row()
globallink_beans_update_ticket_id in globallink_beans/globallink_beans.inc
Updates bean's ticket ID.

File

globallink_beans/globallink_beans.inc, line 529

Code

function globallink_bean_get_row($bid, $source, $target) {
  $result = db_select('globallink_core_beans', 'gcb')
    ->fields('gcb')
    ->condition('object_id', $bid, '=')
    ->condition('source', $source, '=')
    ->condition('target', $target, '=')
    ->execute();
  foreach ($result as $row) {
    return $row;
  }
  return FALSE;
}