You are here

function globallink_get_row in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink.inc \globallink_get_row()

Gets GlobalLink row by id.

Parameters

int $row_id: The id of the row.

Return value

object The row.

2 calls to globallink_get_row()
globallink_cancel_select_records in ./globallink_node.inc
Cancels select records.
globallink_get_translations_for_row_id in ./globallink_receive_translations.inc
Gets GlobalLink translations by row ID.

File

./globallink.inc, line 332
Miscellaneous GlobalLink functions for node translations (non-entity).

Code

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