security updates
have to check views and entityreference for custom patches
This commit is contained in:
@@ -72,6 +72,7 @@ function i18n_field_i18n_string_info() {
|
||||
'description' => t('Configurable fields descriptions, defaults, options, etc.'),
|
||||
'format' => FALSE, // This group doesn't have formatted strings
|
||||
'list' => TRUE, // This group can list all strings
|
||||
'class' => 'i18n_string_textgroup_cached',
|
||||
);
|
||||
return $groups;
|
||||
}
|
||||
|
@@ -6,9 +6,9 @@ package = Multilingual - Internationalization
|
||||
core = 7.x
|
||||
files[] = i18n_field.inc
|
||||
files[] = i18n_field.test
|
||||
; Information added by drupal.org packaging script on 2013-08-21
|
||||
version = "7.x-1.10"
|
||||
; Information added by Drupal.org packaging script on 2015-01-26
|
||||
version = "7.x-1.12"
|
||||
core = "7.x"
|
||||
project = "i18n"
|
||||
datestamp = "1377069696"
|
||||
datestamp = "1422286982"
|
||||
|
||||
|
@@ -248,13 +248,13 @@ function i18n_field_field_widget_form_alter(&$element, &$form_state, $context) {
|
||||
if ($filefield && $single_value && $no_default) {
|
||||
$help_variables = array(
|
||||
'description' => field_filter_xss($instance['description']),
|
||||
'upload_validators' => $alter_element['#upload_validators'],
|
||||
'upload_validators' => isset($alter_element['#upload_validators']) ? $alter_element['#upload_validators'] : array(),
|
||||
);
|
||||
$original_description = theme('file_upload_help', $help_variables);
|
||||
if ($alter_element['#description'] == $original_description) {
|
||||
$help_variables = array(
|
||||
'description' => field_filter_xss($instance_current['description']),
|
||||
'upload_validators' => $alter_element['#upload_validators'],
|
||||
'upload_validators' => isset($alter_element['#upload_validators']) ? $alter_element['#upload_validators'] : array(),
|
||||
);
|
||||
$alter_element['#description'] = theme('file_upload_help', $help_variables);
|
||||
}
|
||||
@@ -403,7 +403,9 @@ function i18n_field_translate_allowed_values($field, $langcode = NULL) {
|
||||
* Translate field default.
|
||||
*/
|
||||
function i18n_field_translate_default($instance, $value, $langcode = NULL) {
|
||||
return i18n_string_translate(array('field', $instance['field_name'], $instance['bundle'], 'default_value'), $value, array('langcode' => $langcode));
|
||||
// The default value does not need sanitizing in a text_textfield widget.
|
||||
$sanitize = !($instance['widget']['type'] == 'text_textfield' && $instance['widget']['module'] == 'text');
|
||||
return i18n_string_translate(array('field', $instance['field_name'], $instance['bundle'], 'default_value'), $value, array('langcode' => $langcode, 'sanitize' => $sanitize));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user