function globallink_webform_get_sent_tpt_rows_by_lid in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_webform/globallink_webform.inc \globallink_webform_get_sent_tpt_rows_by_lid()
Gets sent webform rows by LID.
Parameters
string $lid: The webform LID.
Return value
array Array of webform rows.
1 call to globallink_webform_get_sent_tpt_rows_by_lid()
- globallink_webform_dashboard_form_validate in globallink_webform/
globallink_webform_send.inc - Validates webform form input.
File
- globallink_webform/
globallink_webform.inc, line 445
Code
function globallink_webform_get_sent_tpt_rows_by_lid($lid) {
$result = db_select('globallink_core_webform', 'tcw')
->fields('tcw')
->condition('object_id', $lid, '=')
->condition('status', array(
'Sent for Translations',
'Error',
), 'IN')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}