Thank you both for your answers.<div><br><br><div class="gmail_quote">On 2 September 2010 16:01, Olivier Jacquet <span dir="ltr"><<a href="mailto:ojacquet@jax.be">ojacquet@jax.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You could also just hook_form_alter() and add your submit handler to #submit.<br>
<br>
in test.module:<br>
<br>
function test_form_locale_languages_delete_form_alter(&$form) {<br>
$form['#submit'][] = 'test_form_submit';<br>
}<br>
<br>
function test_form_submit($form, $form_state) {<br>
echo 'hello';<br>
}<br>
<br>
<br>
<br>
Nikola Kotur wrote, On 09/02/2010 01:45 PM:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 2010-09-02 at 13:42 +0200, Nikola Kotur wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
watchdog('locale', 'The %language language (%code) has been created.',<br>
array('%language' => $name, '%code' => $langcode));<br>
</blockquote>
<br>
<br>
Whoops, I actually meant this one:<br>
<br>
watchdog('locale', 'The language %locale has been removed.',<br>
$variables);<br>
<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>