path_form_submit

5 path.module path_form_submit($form_id, $form_values)

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';
}
Login or register to post comments