path_form_submit

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

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