Grayside.Org

Home

refactor

Renaming a Project

grayside — Sat, 05/22/2010 - 19:07

Often enough you create a project, get halfway through, and don’t like the namespace you’ve scattered throughout every file and function name. There are plenty of ways to use IDE’s and other tools to change that name, but I prefer the command line.

If it’s a Features project you want to rename, perhaps to make sure you have a more distinctive namespace, you can use the drush command Features Clone. Look for your duplicate (and renamed) feature in sites/default/modules/custom_features.

I’m hoping to find or create a more general solution, not everything you might want to rename is a Feature, after all. If you know of an existing solution please drop off a comment.

  • drupal
  • project
  • refactor
  • Add new comment
  • Read more
Syndicate content

Monthly archive

  • June 2010 (3)
  • May 2010 (9)
  • April 2010 (5)
  • March 2010 (6)
  • February 2010 (2)
  • November 2009 (7)
  • October 2009 (1)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)

Feeds

  • Syndicate contentHeadlines
  • Syndicate contentDrupal Planet
  • Syndicate contentAtrium Headlines

casetracker cck drupal features-servers FL3 freelinking module node-form og openatrium permissions plugin
<all>

© 2009 grayside.org ♠ Glossary ♠ Powered by Drupal ♠ Floating on Archlinux