You are here

function globallink_get_other_row in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink.inc \globallink_get_other_row()
  2. 7.6 globallink.inc \globallink_get_other_row()

Gets other row.

Parameters

int $row_id: The id of the row.

string $type: The type of GlobalLink core.

Return value

object Other row.

File

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

Code

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