Drupal's core Profile module doesn't use machine names for groups and they allow any text for the Profile Category names.

Disappointed by how profile_migrate converted core Profile categories to machine names I decided to add more robust auto-machine-naming functionality in the case that the Category had non-standard ASCII characters. This addition adds support for Unicode transliteration via the transliterate module.

Patch in the first comment.

Comments

jwilson3’s picture

Status: Active » Needs review
StatusFileSize
new3.26 KB

Note that categories can be converted to either for fieldgroups or new node-types, depending on which setting you choose. This should work for both cases, creating cleaner machine names for cck node types and fieldgroups.

jessehs’s picture

Thanks! You saved me a lot of time. Your code worked like a charm, although the 4th hunk failed and I had to apply it by hand..