You are here

function i18n_string_refresh_reset in Internationalization 7

Prepare group for refreshing, reset version, count strings

2 calls to i18n_string_refresh_reset()
i18n_string_refresh_uninstalled_modules in i18n_string/i18n_string.admin.inc
Purge uninstalled modules.
_i18n_string_batch_refresh_prepare in i18n_string/i18n_string.admin.inc
Prepare group for refreshing

File

i18n_string/i18n_string.admin.inc, line 106
Helper functions for string administration.

Code

function i18n_string_refresh_reset($group) {

  // Mark data on locales_source setting version = 0
  db_update('locales_source')
    ->fields(array(
    'version' => 0,
  ))
    ->condition('textgroup', $group)
    ->execute();
  return (int) db_query("SELECT COUNT(*) FROM {locales_source} WHERE textgroup = :textgroup", array(
    ':textgroup' => $group,
  ))
    ->fetchField();
}