You are here

function globallink_get_other_row in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink.inc \globallink_get_other_row()
  2. 7.5 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.

9 calls to globallink_get_other_row()
globallink_block_cancel_records in globallink_block/globallink_block.inc
Cancels block records.
globallink_block_get_translations_for_row_id in globallink_block/globallink_block_receive.inc
Gets block translations by row ID.
globallink_interface_cancel_records in globallink_interface/globallink_interface.inc
Cancels interface records.
globallink_interface_get_translations_for_row_id in globallink_interface/globallink_interface_receive.inc
Gets interface translations by row ID.
globallink_menu_cancel_records in globallink_menu/globallink_menu.inc
Cancels menu records.

... See full list

File

./globallink.inc, line 1130
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;
  }
}