Don't know if it is a bug or not but here is my problem. I created some custom functions in a file (my_functions.php). This file is included in the template.php file so that the functions can be used in all the template files.

Now in the front page module, when I tried to use these functions, I got an error saying that the function is not declared. So I added the require(path/my_functions.php) to the code in the front page window, hoping it could find the functions. But again I got an error saying that the function has been declared and cannot be declared twice. I also tried require_once but still doesn't work.

So basically, in the front_page module, these functions are declared but cannot be used.

Comments

Dublin Drupaller’s picture

try putting the functions in your template.php file instead of having a seperate functions.php file.

If you are trying to override some core functions (i.e. not theme functions), Drupal will return an error anyway as far as I know.

hope that helps

Dub

Dublin Drupaller’s picture

Status: Active » Closed (fixed)

reopen this if you're still having problems.

Dub