You are here

function path_form_submit in Drupal 4

Same name and namespace in other branches
  1. 5 modules/path/path.module \path_form_submit()

Save URL alias to the database.

File

modules/path.module, line 344
Enables users to rename URLs.

Code

function path_form_submit($form_id, $edit) {
  $src = $edit['src'];
  $dst = $edit['dst'];
  $pid = $edit['pid'];
  path_set_alias($src, $dst, $pid);
  drupal_set_message(t('The alias has been saved.'));
  return 'admin/path';
}