You are here

function mongodb_watchdog_update_7000 in MongoDB 7

Changes a variable name that defines a collection to store events.

File

mongodb_watchdog/mongodb_watchdog.install, line 110
MongoDB watchdog install file.

Code

function mongodb_watchdog_update_7000() {
  $collection_name = variable_get('mongodb_collectionname', 'watchdog');
  if ($collection_name !== 'watchdog') {
    variable_set('mongodb_watchdog', $collection_name);
  }
  variable_del('mongodb_collectionname');
  variable_del('mongodb_watchdog_collectionname');
}