fields('s', array('weight')) ->condition('name', 'node') ->execute() ->fetchField(); db_update('system') ->fields(array('weight' => $node_weight + 1)) ->condition('name', 'migrate_ui') ->execute(); } /** * If WordPress Migrate has background imports via drush enabled, copy the * configuration to the new general Migrate support. */ function migrate_ui_update_7202() { $drush_command = variable_get('wordpress_migrate_drush', ''); if ($drush_command) { variable_set('migrate_drush_path', $drush_command); // Consolidate these two variables into import method - 0 means immediate // only, 1 means drush only, 2 means offer both options. $import_method = variable_get('wordpress_migrate_import_method', 0); $force_drush = variable_get('wordpress_migrate_force_drush', FALSE); if (!$force_drush) { $import_method = 2; } variable_set('migrate_import_method', $import_method); variable_set('migrate_drush_mail', variable_get('wordpress_migrate_notification', 0)); variable_set('migrate_drush_mail_subject', variable_get('wordpress_migrate_notification_subject', '')); variable_set('migrate_drush_mail_body', variable_get('wordpress_migrate_notification_body', '')); } }