You are here

function notifications_disable_language in Notifications 6.3

Remove a language form the database when a language has been disabled

File

./notifications.cron.inc, line 88

Code

function notifications_disable_language($langcode) {
  $default = language_default('language');
  foreach (array(
    'notifications',
    'notifications_queue',
  ) as $table) {
    db_query("UPDATE {" . $table . "} SET language = '%s' WHERE language = '%s'", $default, $langcode);
  }
}