You are here

function globallink_menu_update_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_status()

Updates menu status.

Parameters

object $globallink: GlobalLink object.

string $status: The new status. Defaults to 'Pending Translations.'

2 calls to globallink_menu_update_status()
globallink_menu_get_translated in globallink_menu/globallink_menu.inc
Gets number of translated menus.
globallink_menu_update_deleted_records in globallink_menu/globallink_menu.inc
Updates status for deleted menus.

File

globallink_menu/globallink_menu.inc, line 740

Code

function globallink_menu_update_status(&$globallink, $status = 'Pending Translations') {
  db_update('globallink_core_menu')
    ->fields(array(
    'status' => $status,
    'timestamp' => REQUEST_TIME,
  ))
    ->condition('submission', $globallink->submissionName, '=')
    ->condition('document_ticket', $globallink->documentTicket, '=')
    ->condition('source', $globallink->sourceLocale, '=')
    ->condition('target', $globallink->targetLocale, '=')
    ->execute();
}