Ctools Multi step form throws error when form_validate is from another file even I had included the file using module_load_include.

As per this example I used a function not from the current file but by using module_load_include this is working fine. But when it comes to form_validate it is throwing an error.

Any suggestions?


Figured it out, we need to include using the below function

form_load_include($form_state, 'inc', 'module_name', 'module_name.file');
|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.