Skip to content
Snippets Groups Projects
Commit e35f4111 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2177667 by InternetDevels | jessebeach: Replace theme() with...

Issue #2177667 by InternetDevels | jessebeach: Replace theme() with drupal_render() in locale.bulk.inc.
parent 5905ad68
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -53,10 +53,16 @@ function locale_translate_import_form($form, &$form_state) {
'file_validate_extensions' => array('po'),
'file_validate_size' => array(file_upload_max_size()),
);
$file_description = array(
'#theme' => 'file_upload_help',
'#description' => t('A Gettext Portable Object file.'),
'#upload_validators' => $validators,
);
$form['file'] = array(
'#type' => 'file',
'#title' => t('Translation file'),
'#description' => theme('file_upload_help', array('description' => t('A Gettext Portable Object file.'), 'upload_validators' => $validators)),
'#description' => drupal_render($file_description),
'#size' => 50,
'#upload_validators' => $validators,
'#attributes' => array('class' => array('file-import-input')),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment