summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-10-04 06:41:24 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-10-04 06:41:24 +0000
commitd151662982f3d79f695fd3f3c4cfd22b9ae1cfe0 (patch)
treef02e021b03ad5060bd3cf5510846e48f081c5889 /modules
parent8c86bc5ad12b7c213cbbf331eb79910ee68ce952 (diff)
downloadbrdo-d151662982f3d79f695fd3f3c4cfd22b9ae1cfe0.tar.gz
brdo-d151662982f3d79f695fd3f3c4cfd22b9ae1cfe0.tar.bz2
#80867 by stefano73 and asimmonds. Fix editing and deleting locale strings.
Diffstat (limited to 'modules')
-rw-r--r--modules/locale/locale.module20
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 157551094..87db41769 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -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' => arg(4),
+ 'callback' => 'drupal_get_form',
+ 'callback arguments' => array('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' => arg(4),
+ 'callback arguments' => array(arg(5)),
'access' => $access,
'type' => MENU_CALLBACK);
}
@@ -413,6 +413,14 @@ function locale_admin_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.
*/
function locale_admin_string_delete($lid) {