path_form_submit

Versions
4.7
path_form_submit($form_id, $edit)
5
path_form_submit($form_id, $form_values)

Save a new URL alias to the database.

Code

modules/path/path.module, line 343

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.