function globallink_entity_update_row_submission in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_entity/globallink_entity.inc \globallink_entity_update_row_submission()
Updates entity submission with new ticket and name.
Parameters
object $globallink: GlobalLink object.
1 call to globallink_entity_update_row_submission()
- globallink_entity_cancel_submission in globallink_entity/
globallink_entity.inc - Cancels entity submission.
File
- globallink_entity/
globallink_entity.inc, line 397
Code
function globallink_entity_update_row_submission(&$globallink) {
db_update('globallink_core_entity')
->fields(array(
'status' => 'Pending Translations',
'timestamp' => REQUEST_TIME,
'changed' => 1,
))
->condition('submission_ticket', $globallink->submissionTicket, '=')
->condition('submission', $globallink->submissionName, '=')
->execute();
}