You are here

function i18n_boxes_i18n_string_refresh in Boxes translation 7

Refresh all strings.

File

./i18n_boxes.module, line 82
Provides a new boxes plugin for translatable blocks.

Code

function i18n_boxes_i18n_string_refresh() {
  $boxes = boxes_box_load();
  if (!empty($boxes)) {
    foreach ($boxes as $delta => $box) {
      if ($box->plugin_key == 'i18n') {
        $box
          ->locale_refresh();
      }
    }
  }
  return TRUE;

  // Meaning it completed with no issues.
}