I've a custom theme. page.tpl has the html markup for my template. And I created some paths like 'about-us', 'terms' via my custom module.

Now, my problem is when I access the above defined paths. They are just showing up the contents defined in the callback function.

What I've to do if I want to show the contents in the content region of my page.tpl

Please help me.


  • Have you read Theming Guide? Just asking... – Mołot Sep 13 '13 at 7:17
  • how did you define your callbacks? Did you generate render arrays and rendered them? – xurshid29 Sep 13 '13 at 7:23
  • Thanks @xurshid29 it was my very careless mistake instead of returning the contents of the function actually I printed them. Now I solved the problem, thanks. – Gokul Gopala Krishnan Sep 13 '13 at 7:43
  • 1
    Thanks @Mołot it's just my mistake. I fixed it now by returning the contents (I tried printing previously) – Gokul Gopala Krishnan Sep 13 '13 at 7:44
  • 1
    @GokulGopalaKrishnan noooo, not really. First, it's a mistake that can realistically happen and asking isn't THAT bad, and second, deleting can lead to question ban when you have no upvoted questions. – Mołot Sep 13 '13 at 7:59

Thanks everyone for helping. I changed the contents of the callback function, print to return. It solved the problem.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.