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

dvessel’s picture

Component: theme system » documentation
Category: bug » task

This 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.

jhodgdon’s picture

Title: <Theme name> == <module name> breaks rendering » <Theme name> == <module name> breaks rendering - mention in module dev guide
Project: Drupal core » Documentation
Version: 6.4 »
Component: documentation » Correction/Clarification

Sounds like this is a request to include this in the module developers guide, if it's not already. Moving to correct issue queue.

leehunter’s picture

It probably should be added to this page: http://drupal.org/node/206754. I've added a subhead to highlight the naming section.

jhodgdon’s picture

Status: Active » Fixed

I've added it to that page, and also verified it's in the theme guide: http://drupal.org/node/337173

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.