You are here

function globallink_update_7210 in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.7 globallink.install \globallink_update_7210()
  2. 7.6 globallink.install \globallink_update_7210()

Implements hook_update_N().

Version 2.1.0 updates.

File

./globallink.install, line 2443
Installation file for GlobalLink module.

Code

function globallink_update_7210() {
  $keys = array_keys($_SESSION);
  foreach ($keys as $key) {
    if (stristr($key, 'globallink') !== FALSE) {
      unset($_SESSION[$key]);
    }
  }
  db_update('globallink_core')
    ->fields(array(
    'status' => 'Source Deleted',
  ))
    ->condition('status', 'Node Deleted', '=')
    ->execute();
}