I have just started using drupal and am little bit confused with the flow. I have a variable $var = "<div>Render in View</div>" in a function in my .module file. How do I render this exact html in the page.tpl.php file?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This might work: http://api.drupal.org/api/drupal/modules%21system%21theme.api.php/function/hook_preprocess/7
or use the dynamic hook name
Then this should be accessible in page.tpl.php as
$my_custom_page_var.