You are here

function finder_ui_i18n_string_delete_strings in Finder 7.2

Recursively delete strings using the map.

1 call to finder_ui_i18n_string_delete_strings()
finder_ui_finder_delete in modules/finder_ui/finder_ui.i18n_string.inc
Implements hook_finder_delete().

File

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

Code

function finder_ui_i18n_string_delete_strings($object, $map) {
  $array = (array) $object;
  if (!empty($map)) {
    foreach ($map as $key => $value) {
      if (isset($array[$key]) && is_string($value)) {
        i18n_string_remove($value, $array[$key]);
      }
      if (is_array($value)) {
        finder_ui_i18n_string_delete_strings($array[$key], $value);
      }
    }
  }
}