[development] Action when removing a language
blouhwtf
blouhwtf at gmail.com
Thu Sep 2 14:14:03 UTC 2010
Thank you both for your answers.
On 2 September 2010 16:01, Olivier Jacquet <ojacquet at jax.be> wrote:
> You could also just hook_form_alter() and add your submit handler to
> #submit.
>
> in test.module:
>
> function test_form_locale_languages_delete_form_alter(&$form) {
> $form['#submit'][] = 'test_form_submit';
> }
>
> function test_form_submit($form, $form_state) {
> echo 'hello';
> }
>
>
>
> Nikola Kotur wrote, On 09/02/2010 01:45 PM:
>
> On Thu, 2010-09-02 at 13:42 +0200, Nikola Kotur wrote:
>>
>> watchdog('locale', 'The %language language (%code) has been created.',
>>> array('%language' => $name, '%code' => $langcode));
>>>
>>
>>
>> Whoops, I actually meant this one:
>>
>> watchdog('locale', 'The language %locale has been removed.',
>> $variables);
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100902/caf0a201/attachment.html
More information about the development
mailing list