path_form_submit

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

Save URL alias to the database.

Code

modules/path.module, line 344

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

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.