You are here

function globallink_menu_update_submission_status in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_menu/globallink_menu.inc \globallink_menu_update_submission_status()

Updates menu submission status.

Parameters

string $submission_ticket: The submission ticket.

string $status: The submission status. Defaults to 'Cancelled.'

2 calls to globallink_menu_update_submission_status()
globallink_menu_clear_cancelled_documents in globallink_menu/globallink_menu.inc
Clears cancelled menu documents.
globallink_menu_get_submission_status in globallink_menu/globallink_menu.inc
Gets menu submission status.

File

globallink_menu/globallink_menu.inc, line 943

Code

function globallink_menu_update_submission_status($submission_ticket, $status = 'Cancelled') {
  db_update('globallink_core_menu')
    ->fields(array(
    'status' => $status,
    'timestamp' => REQUEST_TIME,
  ))
    ->condition('submission_ticket', $submission_ticket, '=')
    ->execute();
}