You are here

function globallink_menu_update_row_document 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_row_document()

Updates menu rows to reflect translation status.

Parameters

array $globallink_arr: Array of GlobalLink objects.

1 call to globallink_menu_update_row_document()
globallink_menu_cancel_records in globallink_menu/globallink_menu.inc
Cancels menu records.

File

globallink_menu/globallink_menu.inc, line 328

Code

function globallink_menu_update_row_document(&$globallink_arr) {
  foreach ($globallink_arr as $globallink) {
    if ($globallink->cancelled) {
      db_update('globallink_core_menu')
        ->fields(array(
        'status' => 'Pending Translations',
        'timestamp' => REQUEST_TIME,
      ))
        ->condition('rid', $globallink->tptRowId, '=')
        ->execute();
    }
  }
}