function globallink_get_sent_file_entity_rows_by_fid in GlobalLink Connect for Drupal 7.7
1 call to globallink_get_sent_file_entity_rows_by_fid()
- globallink_send_file_entity_for_translations in globallink_file_entity/
globallink_file_entity.inc
File
- globallink_file_entity/
globallink_file_entity.inc, line 16
Code
function globallink_get_sent_file_entity_rows_by_fid($fid) {
$result = db_select('globallink_document', 'gd')
->fields('gd')
->condition('object_id', $fid, '=')
->condition('entity_type', GLOBALLINK_ENTITY_TYPE_FILE_ENTITY, '=')
->condition('target_status', array(
GLOBALLINK_STATUS_TRANSLATION_SENT,
GLOBALLINK_STATUS_TRANSLATION_ERROR,
GLOBALLINK_STATUS_TRANSLATION_COMPLETED,
), 'IN')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}