You are here

function linkit_update_7201 in Linkit 7.2

Delete old linkit settings.

File

./linkit.install, line 119
Install, update and uninstall functions for the Linkit module.

Code

function linkit_update_7201() {

  // Delete old settings if any.
  $num_deleted = db_delete('variable')
    ->condition('name', array(
    'linkit_node',
    'linkit_term',
  ), 'IN')
    ->execute();

  // No old settings deleted
  if (!$num_deleted) {
    return st("No old Linkit settings were deleted.");
  }
  else {
    return st("Old Linkit settings were deleted.");
  }
}