Skip to main content
3 events
when toggle format what by license comment
Mar 24, 2015 at 5:02 comment added Rupesh You are working on module level so you should have to keep tpl inside module as per drupal standard. Above code will fully work as per your requirement(drupal_render). Wrong Way (echo drupal_get_form('my_module_form')) on tpl.
Mar 24, 2015 at 4:56 comment added nomeer Thanku @Rupesh, my template is in mytheme/templates/page--contact-us.tpl.php thats why in function my_module_theme($existing,$type,$theme,$path) I replaced the path like this ('theme','my_theme').'/templates', is this right? and in my template file, form is appearing using echo drupal_get_form('my_module_form') but I want to print individual fields like echo drupal_render($form['field_name'])
Mar 23, 2015 at 5:21 history answered Rupesh CC BY-SA 3.0