function globallink_interface_get_sent_rows_by_lid in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink_interface/globallink_interface.inc \globallink_interface_get_sent_rows_by_lid()
Gets sent interface rows by LID.
Parameters
string $lid: The interface LID.
Return value
array Array of interface rows.
2 calls to globallink_interface_get_sent_rows_by_lid()
- globallink_interface_dashboard_form_validate in globallink_interface/
globallink_interface_send.inc - Validates interface form input.
- globallink_interface_send_for_translations in globallink_interface/
globallink_interface.inc - Sends interfaces for translation.
File
- globallink_interface/
globallink_interface.inc, line 239
Code
function globallink_interface_get_sent_rows_by_lid($lid) {
$result = db_select('globallink_core_interface', 'tci')
->fields('tci')
->condition('object_id', $lid, '=')
->condition('status', array(
'Sent for Translations',
'Error',
), 'IN')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}