I am trying to call a custom form in a block. The form is written in my custom module. I tried different ways to call the form, but not getting the form.
Here is the syntax, I last tried.
$form = drupal_get_form('my_custom_form'); print drupal_render($form); //my_custom_form is my form_id
Here is the link I found a similar question, but didn't get the correct solution for my question. Form within a block