function finder_i18nstrings_locale in Finder 7
Same name and namespace in other branches
- 6 modules/finder_i18nstrings/finder_i18nstrings.module \finder_i18nstrings_locale()
Implements hook_locale().
See also
File
- modules/
finder_i18nstrings/ finder_i18nstrings.module, line 14 - 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);
}
}
}
}
}