<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
On Thu, 2010-09-02 at 13:36 +0300, blouhwtf wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
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.<BR>
</BLOCKQUOTE>
<BR>
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):<BR>
<BR>
watchdog('locale', 'The %language language (%code) has been created.', array('%language' => $name, '%code' => $langcode));<BR>
<BR>
</BODY>
</HTML>