Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
669fc40b
Commit
669fc40b
authored
Oct 02, 2006
by
Dries Buytaert
Browse files
- Patch
#85584
by erdemkose: bugfix: pass to the form.
parent
23d0f350
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
669fc40b
...
...
@@ -107,7 +107,7 @@ function drupal_get_form($form_id) {
$_SESSION
[
'form'
][
$form_build_id
]
=
$args
;
$form
[
'#build_id'
]
=
$form_build_id
;
}
drupal_pr
ocess
_form
(
$args
[
0
],
$form
);
drupal_pr
epare
_form
(
$args
[
0
],
$form
);
}
return
drupal_render_form
(
$args
[
0
],
$form
);
...
...
includes/locale.inc
View file @
669fc40b
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment