locale_update_6003

Versions
6
locale_update_6003()

Prune strings with no translations (will be automatically re-registered if still in use)

Related topics

Code

modules/locale/locale.install, line 141

<?php
function locale_update_6003() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {locales_source} WHERE lid NOT IN (SELECT lid FROM {locales_target})");
  return $ret;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.