You are here

function globallink_entity_get_row in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_entity/globallink_entity.inc \globallink_entity_get_row()

Retrieves entity's row by ID.

Parameters

string $row_id: The entity row ID.

Return value

The row if entity exists. FALSE if not.

2 calls to globallink_entity_get_row()
globallink_entity_cancel_select_records in globallink_entity/globallink_entity.inc
Cancels entity records.
globallink_entity_get_translations_for_row_id in globallink_entity/globallink_entity_receive.inc
Gets entity translations by row ID.

File

globallink_entity/globallink_entity.inc, line 544

Code

function globallink_entity_get_row($row_id) {
  $result = db_select('globallink_core_entity', 'tc')
    ->fields('tc')
    ->condition('rid', $row_id, '=')
    ->execute();
  foreach ($result as $row) {
    return $row;
  }
}