[development] Action when removing a language

Nikola Kotur kotnick at gmail.com
Thu Sep 2 11:42:58 UTC 2010


On Thu, 2010-09-02 at 13:36 +0300, blouhwtf wrote:

> Is there a way to perform some actions in code when deleting a
> language ? I've tried to find some hooks in the API but couldn't find
> what i need.


Unfortunately there is no hook for that (I think that it should be), and
the only thing that I can think of is really a hack: create
hook_watchdog and catch locale's watchdog entry (from locale.inc):

watchdog('locale', 'The %language language (%code) has been created.',
array('%language' => $name, '%code' => $langcode));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100902/b3f20689/attachment.html 


More information about the development mailing list