function globallink_get_sent_rows_by_nid in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_get_sent_rows_by_nid()
- 7.5 globallink.inc \globallink_get_sent_rows_by_nid()
Gets sent TPT rows by node id.
Parameters
int $nid: The node id.
Return value
array Array of TPT rows.
2 calls to globallink_get_sent_rows_by_nid()
- globallink_dashboard_node_form_validate in ./
globallink_send_translations.inc - Validates form actions for GlobalLink submissions.
- globallink_send_for_translations in ./
globallink_node.inc - Sends content to GlobalLink for translation.
File
- ./
globallink.inc, line 307 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_get_sent_rows_by_nid($nid) {
$result = db_select('globallink_core', '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;
}