Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
d1516629
Commit
d1516629
authored
18 years ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
#80867
by stefano73 and asimmonds. Fix editing and deleting locale strings.
parent
8c86bc5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/locale/locale.module
+14
-6
14 additions, 6 deletions
modules/locale/locale.module
with
14 additions
and
6 deletions
modules/locale/locale.module
+
14
−
6
View file @
d1516629
...
...
@@ -114,18 +114,18 @@ function locale_menu($may_cache) {
// We put this in !$may_cache so it's only added once per request
drupal_add_css
(
drupal_get_path
(
'module'
,
'locale'
)
.
'/locale.css'
);
if
(
is_numeric
(
arg
(
4
)))
{
if
(
is_numeric
(
arg
(
5
)))
{
// String related callbacks
$items
[]
=
array
(
'path'
=>
'admin/settings/locale/string/edit/'
.
arg
(
4
),
$items
[]
=
array
(
'path'
=>
'admin/settings/locale/string/edit/'
.
arg
(
5
),
'title'
=>
t
(
'edit string'
),
'callback'
=>
'
locale_admin_string_edit
'
,
'callback arguments'
=>
ar
g
(
4
),
'callback'
=>
'
drupal_get_form
'
,
'callback arguments'
=>
ar
ray
(
'locale_admin_string_edit'
,
arg
(
5
)
),
'access'
=>
$access
,
'type'
=>
MENU_CALLBACK
);
$items
[]
=
array
(
'path'
=>
'admin/settings/locale/string/delete/'
.
arg
(
4
),
$items
[]
=
array
(
'path'
=>
'admin/settings/locale/string/delete/'
.
arg
(
5
),
'title'
=>
t
(
'delete string'
),
'callback'
=>
'locale_admin_string_delete'
,
'callback arguments'
=>
ar
g
(
4
),
'callback arguments'
=>
ar
ray
(
arg
(
5
)
),
'access'
=>
$access
,
'type'
=>
MENU_CALLBACK
);
}
...
...
@@ -412,6 +412,14 @@ function locale_admin_string_edit($lid) {
return
_locale_string_edit
(
$lid
);
}
/**
* Process the string edit form.
*/
function
locale_admin_string_edit_submit
(
$form_id
,
$form_values
)
{
include_once
'./includes/locale.inc'
;
return
_locale_string_edit_submit
(
$form_id
,
$form_values
);
}
/**
* Delete a string.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment