function globallink_get_other_row in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_get_other_row()
- 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.
8 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_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.
- globallink_menu_get_translations_for_row_id in globallink_menu/
globallink_menu_receive.inc - Gets menu translations by row ID.
File
- ./
globallink.inc, line 1104 - 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;
}
}