You are here

function finder_i18nstrings_locale in Finder 6

Same name and namespace in other branches
  1. 7 modules/finder_i18nstrings/finder_i18nstrings.module \finder_i18nstrings_locale()

Implementation of hook_locale().

See also

hook_locale()

File

modules/finder_i18nstrings/finder_i18nstrings.module, line 13
The finder string translation module.

Code

function finder_i18nstrings_locale($op = 'groups', $group = NULL) {
  switch ($op) {
    case 'groups':
      return array(
        'finder' => t('Finder'),
      );
    case 'refresh':
      $finders = finder_load_multiple(NULL, array(), TRUE);
      if (is_array($finders)) {
        foreach ($finders as $finder) {
          finder_save($finder);
          foreach ($finder->elements as $key => $element) {
            finder_element_save($element);
          }
        }
      }
  }
}