You are here

function globallink_beans_get_sent_rows_by_bid in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_beans/globallink_beans.inc \globallink_beans_get_sent_rows_by_bid()

Gets sent beans rows by node ID.

Parameters

string $bid: The bean ID.

Return value

array Array of beans rows.

2 calls to globallink_beans_get_sent_rows_by_bid()
globallink_beans_dashboard_form_validate in globallink_beans/globallink_beans_send.inc
Validates fieldable panels form input.
globallink_beans_send_for_translations in globallink_beans/globallink_beans.inc
Sends beans for translation.

File

globallink_beans/globallink_beans.inc, line 140

Code

function globallink_beans_get_sent_rows_by_bid($bid) {
  $result = db_select('globallink_core_beans', 'gcb')
    ->fields('gcb')
    ->condition('object_id', $bid, '=')
    ->condition('status', array(
    'Sent for Translations',
    'Error',
  ), 'IN')
    ->execute();
  $rows = array();
  foreach ($result as $row) {
    $rows[] = $row;
  }
  return $rows;
}