You are here

function globallink_entity_get_sent_rows_by_nid in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_entity/globallink_entity.inc \globallink_entity_get_sent_rows_by_nid()
  2. 7.5 globallink_entity/globallink_entity.inc \globallink_entity_get_sent_rows_by_nid()

Gets sent entity rows by node ID.

Parameters

string $nid: The node ID.

Return value

array Array of entity rows.

2 calls to globallink_entity_get_sent_rows_by_nid()
globallink_entity_dashboard_form_validate in globallink_entity/globallink_entity_send.inc
Validates entity form input.
globallink_entity_send_for_translations in globallink_entity/globallink_entity.inc
Sends entities for translation.

File

globallink_entity/globallink_entity.inc, line 214

Code

function globallink_entity_get_sent_rows_by_nid($nid) {
  $result = db_select('globallink_core_entity', 'tc')
    ->fields('tc')
    ->condition('nid', $nid, '=')
    ->condition('status', array(
    'Sent for Translations',
    'Error',
  ), 'IN')
    ->execute();
  $rows = array();
  foreach ($result as $row) {
    $rows[] = $row;
  }
  return $rows;
}