function path_form_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/path.module \path_form_submit()
Save a new URL alias to the database.
File
- modules/
path/ path.module, line 343 - Enables users to rename URLs.
Code
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';
}