diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-09-08 16:33:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-09-08 16:33:02 +0000 |
commit | 6f0e54b037618676af98d7c59f87b16b0745d575 (patch) | |
tree | dd4b4df4d0be79b3d449b291ea75342dc5c9107d /modules/path/path.module | |
parent | 6ce212e4ebeccb43e4e65421816d99c02019b9b7 (diff) | |
download | brdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.gz brdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.bz2 |
- Patch #82465 by webchick: renamed variables in hooks for consistency.
Diffstat (limited to 'modules/path/path.module')
-rw-r--r-- | modules/path/path.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index 1fcc5b000..bd97ac45f 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -340,10 +340,10 @@ function path_load($pid) { /** * Verify that a new URL alias is valid */ -function path_form_validate($form_id, $edit) { - $src = $edit['src']; - $dst = $edit['dst']; - $pid = $edit['pid']; +function path_form_validate($form_id, $form_values) { + $src = $form_values['src']; + $dst = $form_values['dst']; + $pid = $form_values['pid']; if (!valid_url($src)) { form_set_error('src', t('The system path %path is invalid.', array('%path' => $src))); @@ -361,8 +361,8 @@ function path_form_validate($form_id, $edit) { /** * Save a new URL alias to the database. */ -function path_form_submit($form_id, $edit) { - path_set_alias($edit['src'], $edit['dst'], $edit['pid']); +function path_form_submit($form_id, $form_values) { + path_set_alias($form_values['src'], $form_values['dst'], $form_values['pid']); drupal_set_message(t('The alias has been saved.')); return 'admin/build/path'; |