function globallink_taxonomy_update_submission_status in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_update_submission_status()
Updates taxonomy submission status.
Parameters
string $submission_ticket: The submission ticket.
string $status: The submission status. Defaults to 'Cancelled.'
2 calls to globallink_taxonomy_update_submission_status()
- globallink_taxonomy_clear_cancelled_documents in globallink_taxonomy/
globallink_taxonomy.inc - Clears cancelled taxonomy documents.
- globallink_taxonomy_get_submission_status in globallink_taxonomy/
globallink_taxonomy.inc - Gets taxonomy submission status.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 1297
Code
function globallink_taxonomy_update_submission_status($submission_ticket, $status = 'Cancelled') {
db_update('globallink_core_taxonomy')
->fields(array(
'status' => $status,
'timestamp' => REQUEST_TIME,
))
->condition('submission_ticket', $submission_ticket, '=')
->execute();
}