You are here

function _sbp_paths_refresh_all_translations in Search by Page 7

Refreshes all path info translations.

1 string reference to '_sbp_paths_refresh_all_translations'
sbp_paths_i18n_string_info in ./sbp_paths.module
Implements hook_i18n_string_info().

File

./sbp_paths.module, line 246
Module file for Search by Page Paths, a sub-module for Search by Page.

Code

function _sbp_paths_refresh_all_translations() {
  if (module_exists('i18n_string')) {
    $res = db_query('SELECT * FROM {sbpp_path} p')
      ->fetchAll();
    foreach ($res as $vals) {
      $arr = array(
        'pid' => $vals->pid,
        'title' => $vals->title,
        'type' => $vals->page_type,
        'snippet' => $vals->snippet,
      );
      _sbp_paths_update_translation($arr);
    }
  }
}