function globallink_update_7210 in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.install \globallink_update_7210()
- 7.6 globallink.install \globallink_update_7210()
Implements hook_update_N().
Version 2.1.0 updates.
File
- ./
globallink.install, line 2597 - 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' => GLOBALLINK_STATUS_TRANSLATION_SOURCE_DELETED,
))
->condition('status', 'Node Deleted', '=')
->execute();
}