You are here

function _i18n_string_result_count in Internationalization 7

Count operation results by result value

2 calls to _i18n_string_result_count()
i18n_string_object_wrapper::strings_remove in i18n_string/i18n_string.inc
Remove all strings for this object.
i18n_string_object_wrapper::strings_update in i18n_string/i18n_string.inc
Update all strings for this object.

File

i18n_string/i18n_string.module, line 1000
Internationalization (i18n) package - translatable strings.

Code

function _i18n_string_result_count($list) {
  $result = array();
  foreach ($list as $value) {
    $key = (string) $value;
    $result[$key] = isset($result[$key]) ? $result[$key] + 1 : 1;
  }
  return $result;
}