function globallink_block_update_submission in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_block/globallink_block.inc \globallink_block_update_submission()
Updates block submission with new ticket and name.
Parameters
object $globallink: GlobalLink object.
1 call to globallink_block_update_submission()
- globallink_block_cancel_submission in globallink_block/
globallink_block.inc - Cancels block submission.
File
- globallink_block/
globallink_block.inc, line 452
Code
function globallink_block_update_submission(&$globallink) {
db_update('globallink_core_block')
->fields(array(
'status' => 'Cancelled',
'timestamp' => REQUEST_TIME,
))
->condition('submission_ticket', $globallink->submissionTicket, '=')
->condition('submission', $globallink->submissionName, '=')
->execute();
}