Closed (fixed)
Project:
Documentation
Component:
Correction/Clarification
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2008 at 07:36 UTC
Updated:
30 Mar 2010 at 15:20 UTC
a quite stupid and uncommon thing, so it might not needed to be fixed ..
i created a module and a theme both with exactly the same name.
now i used the mod sections to just have this theme for showing my modules page ...
all i got was the output of my module.
as i turned off the mod everything was ok.
it seems to me drupal does not distinguish a module from a theme when loading these files.
so the system just took one path (the mod) in its array and not the other (the theme)
it took me some hours to find out.
perhaps there is no need to fix that. but a message could be send in such a case
"dont use modules and theme with the same folder name" or so
Comments
Comment #1
dvessel commentedThis is definitely not supported now and I doubt it would be in the future. This could go into the handbook docs where the .info is mentioned. It's already there for the theming docs. Not sure about modules.
Comment #2
jhodgdonSounds like this is a request to include this in the module developers guide, if it's not already. Moving to correct issue queue.
Comment #3
leehunter commentedIt probably should be added to this page: http://drupal.org/node/206754. I've added a subhead to highlight the naming section.
Comment #4
jhodgdonI've added it to that page, and also verified it's in the theme guide: http://drupal.org/node/337173