0

This is more of a developer question.

I need a list of all the modules that are present in my code base. I am not looking for enabled or install modules. I am just looking for all the modules(code) present in my code base.

1
  • Might be out of scope and closed but just thought of sharing ;) – Gokul N K Feb 4 '14 at 11:12
0

Use the following command in the terminal at the root of your site.

grep -hr '^name =.*' . | sort

This is the non drush way and also helps me identify the duplicate code for a single module if any.

3
  • This gives me duplicated results. Any idea why? – berliner Feb 4 '14 at 13:52
  • Use grep -r '^name =.*' . | sort This will give you the location of the modules as well. So that you can where your duplicate code is present. – Gokul N K Feb 5 '14 at 6:23
  • Ah, that's what I guessed, it's the svn folder ;) – berliner Feb 5 '14 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.