I am using Drupal 6.17. I have made custom theme for frontend. So on backend I am using Garland and in Frontend I am using my custom made theme say "Abc".

Now when I come to my administrative blocks page, i.e. http://www.abc.com/admin/build/block, It displays garland theme, while it's supposed to display my "Abc" theme, so I can use my custom regions to assign blocks to different positions. It's strange behaviour. After googling I came to know that it was hook_init in one of my custom module causing the problems!! It was completely out of hint ;)

Another problem I found with hook_init is custom maintenance page template not working if we have used hook_init.

So I reached to the conclusion that it was the hook_init which is creating problem. BUT let me tell you what I am using in my hook_init code, I am using drupal_add_js to include few common js libraries so it appears on every page of the site. When I commented all drupal_add_js statements, and then checked my administrative blocks page it's working!! So I have to say it's drupal_add_js in hook_init actually creates problem.

Any help would be appreciated, What is the proper way to include common js files so it appears on all drupal pages??

Thx,
Sajal

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.