You are here

function finder_ui_finder_presave in Finder 7.2

Implements hook_finder_presave().

File

modules/finder_ui/finder_ui.i18n_string.inc, line 44
i18n_string.inc

Code

function finder_ui_finder_presave($object) {
  $object->settings['i18n_string'] = finder_ui_i18n_string_map($object);
  finder_ui_i18n_string_save_strings($object, $object->settings['i18n_string']);
  if (!empty($object->elements)) {
    foreach ($object->elements as $element) {
      finder_ui_finder_presave($element);
    }
  }
}