Projet

Général

Profil

Révision 8c72e82a

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_string/i18n_string.inc
1166 1166
      $info = is_array($info) ? $info : array('title' => $info);
1167 1167
      $field_name = isset($info['field']) ? $info['field'] : $field;
1168 1168
      $value = $this->get_field($field_name);
1169
      if (is_array($value) && isset($value['value'])) {
1170
        $format = isset($value['format']) ? $value['format'] : NULL;
1171
        $value = $value['value'];
1172
      }
1173
      else {
1174
        $format = isset($info['format']) ? $this->get_field($info['format']) : NULL;
1175
      }
1169 1176
      $strings[$this->get_textgroup()][$string_type][$object_id][$field] = array(
1170 1177
        'string' => is_array($value) || isset($info['empty']) && $value === $info['empty'] ? NULL : $value,
1171 1178
        'title' => $info['title'],
1172
        'format' => isset($info['format']) ? $this->get_field($info['format']) : NULL,
1179
        'format' => $format,
1173 1180
        'name' => array_merge($object_keys, array($field)),
1174 1181
      );
1175 1182
    }

Formats disponibles : Unified diff