<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 10/10/2011 10:43, Prajwala Manchikatla wrote:
    <blockquote
cite="mid:CA+UftVO3ssy_DDDujx1MNxqXiz7V2W9PJbPKHWr434S1hVAidA@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        arial,sans-serif; font-size: 13px; background-color: rgb(255,
        255, 255);">Hi Rohit,
        <div><br>
        </div>
        <div>This is a support request, so it should go to support
          mailing list.&nbsp;</div>
        <div>You can write your custom submit handler by using
          hook_form_alter.&nbsp;</div>
        <div><br>
        </div>
        <div>function MODULE_form_alter(&amp;$form, &amp;$form_state,
          $form_id) &nbsp;{</div>
        <div>&nbsp; if ($form_id == '<span style="font-family: monospace;
            white-space: pre-wrap; ">webform_client_form_4</span>') {</div>
        <div>&nbsp; &nbsp; $form['#submit'][] =
          'custom_form_submit_handler_function'; // Note that this
          function will be called after the default webform submit
          handler</div>
        <div>&nbsp; }</div>
        <div>}</div>
      </span></blockquote>
    <br>
    First post, hello all.<br>
    <br>
    And to use only a custom handler:<br>
    <div><tt>&nbsp; if ($form_id == '<span style="font-family: monospace;
          white-space: pre-wrap; ">webform_client_form_4</span>') {</tt></div>
    <tt>
    </tt>
    <div><tt>&nbsp; &nbsp; // remove all handlers:<br>
        &nbsp;&nbsp;&nbsp; unset($form['#submit']);<br>
        &nbsp;&nbsp;&nbsp; // add alternative handler:<br>
        &nbsp;&nbsp;&nbsp; $form['#submit'] =
        array('custom_form_submit_handler_function');<br>
      </tt></div>
    <div><tt>&nbsp; }</tt></div>
    would work too, no?&nbsp; <br>
    <br>
    pd
  </body>
</html>