I'm in the process of upgrading a handful of old Drupal 6 site that were using nodewords, and I'm having trouble converting records. The drush command for converting from nodewords is commented out and code comments indicate that it doesn't work.

I've started to work on the drush command by copying how the page title drush command command works, and I've incorporated some of the working code from the nodewords UI tools. This first patch seems to do the trick for entities (node, user, term) and for the front page -- but hasn't been tested for anything else. Posting here incase it is valuable to others (and most likely my future self!)

TODO:
* Test / Add support for other nodewords types.
* Restore batching.
* Refactor so code is reused between UI and drush command

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenlampton created an issue. See original summary.

jenlampton’s picture

Issue summary: View changes
jenlampton’s picture

Status: Needs work » Needs review
FileSize
21.22 KB

Here we go, the drush support for nodewords conversion is at least working for me with this patch.

DamienMcKenna’s picture

Patch #3 applied to the correct path.

DamienMcKenna’s picture

Some minor tweaks.

DamienMcKenna’s picture

Status: Needs review » Fixed
Parent issue: » #2891956: Plan for Metatag 7.x-1.23 release

Thanks Jen. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.