function globallink_webform_update_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_update_submission_status()
Updates webform status.
Parameters
object $globallink: GlobalLink object.
string $status: The new status. Defaults to 'Cancelled.'
2 calls to globallink_webform_update_submission_status()
- globallink_webform_clear_cancelled_documents in globallink_webform/
globallink_webform.inc - Clears cancelled webform documents.
- globallink_webform_get_pd_submission_status in globallink_webform/
globallink_webform.inc - Gets webform project director submission status.
File
- globallink_webform/
globallink_webform.inc, line 816
Code
function globallink_webform_update_submission_status($submission_ticket, $status = 'Cancelled') {
db_update('globallink_core_webform')
->fields(array(
'status' => $status,
'timestamp' => REQUEST_TIME,
))
->condition('submission_ticket', $submission_ticket, '=')
->execute();
}