function globallink_webform_get_submission_status in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_webform/globallink_webform.inc \globallink_webform_get_submission_status()
Gets webform submission status.
1 call to globallink_webform_get_submission_status()
- globallink_webform_locale_languages in globallink_webform/
globallink_webform.inc - Gets status for each language to be translated into.
File
- globallink_webform/
globallink_webform.inc, line 328
Code
function globallink_webform_get_submission_status($lid, $locale_code) {
$result = db_select('globallink_core_webform', 'tcw')
->fields('tcw', array(
'status',
))
->condition('object_id', $lid, '=')
->condition('target', $locale_code, '=')
->execute();
while ($record = $result
->fetchAssoc()) {
return $record;
}
}