Skip to content
Snippets Groups Projects
Commit 669fc40b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #85584 by erdemkose: bugfix: pass to the form.

parent 23d0f350
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ function drupal_get_form($form_id) {
$_SESSION['form'][$form_build_id] = $args;
$form['#build_id'] = $form_build_id;
}
drupal_process_form($args[0], $form);
drupal_prepare_form($args[0], $form);
}
return drupal_render_form($args[0], $form);
......
......@@ -273,7 +273,7 @@ function _locale_admin_import_submit($form_id, $form_values) {
return 'admin/settings/locale';
}
function _locale_export_po_form() {
function _locale_export_po_form($languages) {
$form['export'] = array('#type' => 'fieldset',
'#title' => t('Export translation'),
'#collapsible' => TRUE,
......@@ -310,7 +310,7 @@ function _locale_admin_export_screen() {
$output = '';
// Offer language specific export if any language is set up
if (count($languages)) {
$output = drupal_get_form('_locale_export_po_form');
$output = drupal_get_form('_locale_export_po_form', $languages);
}
$output .= drupal_get_form('_locale_export_pot_form');
......
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