By asim143 on
I want to pass $form array to page-something.tpl.php from module which I have developed let say 'mymodule'. Help me how can I pass it. I have tried through template.php but until I'm in template.php $from array is accessible but when I'm in page-something.tpl.php $form array is not accessible. I want only my form content to be displayed in a pop up window, leaving the header and footer content empty.
Thank your help.
Comments
By the time you get to your
By the time you get to your page template file you shouldn't be messing with $form values. Your form should already be rendered and in the $content variable.
The easy way to make a page appear without certain regions is to use a custom page template file, which you seem to already be on your way to doing that.
If you want to make changes to your form you should create a custom module and use the hook_form_alter function.