I tried to make a template form my custom form made in a custom module, but i dont manage to call the .tpl.php
Here is my function in my theme template.php file (which is under : drupal/sites/all/themes/atheme) :
function atheme_theme() {
return array(
// Defines the form ID as a theme hook.
'agendize_multistep_form' => array(
// Specifies 'form' as a render element.
'render element' => 'form',
'path' => drupal_get_path('theme', 'atheme') . '/templates',
'template' => 'agendize_multistep_form',
),
);
}
My form id is : agendize_multistep_form (I checked with drupal_set_message)
An my template file is under:
drupal/sites/all/themes/atheme/templates/agendize_multistep_form.tpl.php
I put intentionnaly a blank tpl in order to have a blank form displayed. But I still have (even with a cleared cache) my form with all elements displayed , like if i never declared this theme overriding.
Thx for your help
I hope the below code helps you.
atheme/template.php:
agendize_multistep_form():
atheme/template/agendize_multistep_form.tpl.php:
Kindly clear the cache and have a check.