function globallink_webform_get_sent_tpt_rows_by_lid in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 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.
2 calls 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.
- globallink_webform_send_for_translations in globallink_webform/
globallink_webform.inc - Sends webforms for translation.
File
- globallink_webform/
globallink_webform.inc, line 373
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;
}