You are here

function users_export_update_7001 in Users Export 7.2

Update from 7.x-1.1 to 7.x-2.0.

File

./users_export.install, line 42
Handles installation steps for users_export.

Code

function users_export_update_7001(&$sandbox) {
  $output = array();
  try {
    variable_del('users_export_type');
    if (!module_exists('loft_data_grids')) {
      $output[] = 'You must immediately install the Loft Data Grids module; refer to the README for instructions.' . "\n";
    }
  } catch (Exception $e) {
    throw new DrupalUpdateException('FAILED: Update from 7.x-1.0 to 7.x-2.0');
  }
  return implode("<br />", $output);
}