function globallink_beans_get_row_by_id in GlobalLink Connect for Drupal 7.6
Gets bean row by id.
Parameters
string $id: The bean row ID.
Return value
The bean row. FALSE if row doesn't exist.
2 calls to globallink_beans_get_row_by_id()
- globallink_beans_cancel_records in globallink_beans/
globallink_beans.inc - Cancels beans records.
- globallink_beans_get_translations_for_row_id in globallink_beans/
globallink_beans_receive.inc - Gets beans translations by row ID.
File
- globallink_beans/
globallink_beans.inc, line 779
Code
function globallink_beans_get_row_by_id($id) {
$result = db_select('globallink_core_beans', 'gcb')
->fields('gcb')
->condition('rid', $id, '=')
->execute();
foreach ($result as $row) {
return $row;
}
return FALSE;
}