Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d1516629
Commit
d1516629
authored
Oct 04, 2006
by
drumm
Browse files
#80867
by stefano73 and asimmonds. Fix editing and deleting locale strings.
parent
8c86bc5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/locale/locale.module
View file @
d1516629
...
@@ -114,18 +114,18 @@ function locale_menu($may_cache) {
...
@@ -114,18 +114,18 @@ function locale_menu($may_cache) {
// We put this in !$may_cache so it's only added once per request
// We put this in !$may_cache so it's only added once per request
drupal_add_css
(
drupal_get_path
(
'module'
,
'locale'
)
.
'/locale.css'
);
drupal_add_css
(
drupal_get_path
(
'module'
,
'locale'
)
.
'/locale.css'
);
if
(
is_numeric
(
arg
(
4
)))
{
if
(
is_numeric
(
arg
(
5
)))
{
// String related callbacks
// 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'
),
'title'
=>
t
(
'edit string'
),
'callback'
=>
'
locale_admin_string_edit
'
,
'callback'
=>
'
drupal_get_form
'
,
'callback arguments'
=>
ar
g
(
4
),
'callback arguments'
=>
ar
ray
(
'locale_admin_string_edit'
,
arg
(
5
)
),
'access'
=>
$access
,
'access'
=>
$access
,
'type'
=>
MENU_CALLBACK
);
'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'
),
'title'
=>
t
(
'delete string'
),
'callback'
=>
'locale_admin_string_delete'
,
'callback'
=>
'locale_admin_string_delete'
,
'callback arguments'
=>
ar
g
(
4
),
'callback arguments'
=>
ar
ray
(
arg
(
5
)
),
'access'
=>
$access
,
'access'
=>
$access
,
'type'
=>
MENU_CALLBACK
);
'type'
=>
MENU_CALLBACK
);
}
}
...
@@ -412,6 +412,14 @@ function locale_admin_string_edit($lid) {
...
@@ -412,6 +412,14 @@ function locale_admin_string_edit($lid) {
return
_locale_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.
* Delete a string.
*/
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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