On building a custom module and theme for a project I came across a situation where the $form variable used to get overridden by
hook_form of the custom module. Because of this whenever I used to go into the admin panel to change some theme settings in place of the the settings options panel all that would be displayed was "Array".

After spending days trying to figure out what was going wrong, with some help from mpare and add1sun I realized that because the module and theme had the same name there was a conflict between them.

Therefore if we could put a Note in the Module developer's guide(http://drupal.org/node/508) stating never to have the same name for a module and theme, it could save others sometime trying to find a solution.

Comments

dman’s picture

Status: Active » Fixed

Yes indeed.
I remember the hair-pulling as there seemed to be no individual thing wrong with the things I was working on...
You are lucky - in Drupal 4.7 doing so used to cause a segfault!
It's already in the troubleshooter http://drupal.org/node/143020

However it's one of those cases where you wouldn't read the instructions until after you'd crashed ;-)
...

Like - um - oh gosh I was about to add that note ">to this page where it would be most use ...
and it's already there!
... since a request identical to yours a year ago!

:-}

Anonymous’s picture

Status: Fixed » Closed (fixed)

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