Best practice to rename a module and theme to prevent update notification?

On our site, there is one contrib module and contrib theme we have customized. In hindsight, we should have edited copies of it and renamed it to prevent update notifications in Drupal for these two.

So after the fact, what's the best way to rename a contrib module and theme we're using?
sandshakimiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aaron FeledyDrupal Developer and ConsultantCommented:
In both the theme and the module, you'll find a .info file. In this file at the bottom there are a few lines added by the Drupal.org packaging script. Simply change the value of the "project" line to something that doesn't exist and the module and theme will appear grayed out in the updates list. No updates will be found since you changed the value of the project it will be looking for. If you don't want the module or theme to show up in the updates list at all, you can remove all of the lines added by the packaging script. Drupal won't attempt to look for an update if that data isn't there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.