path_admin_edit

Versions
4.6 – 6
path_admin_edit($pid = 0)
7
path_admin_edit($path = array())

Menu callback; handles pages for creating and editing URL aliases.

Code

modules/path.module, line 84

<?php
function path_admin_edit($pid = 0) {
  if ($pid) {
    $alias = path_load($pid);
    drupal_set_title(check_plain($alias['dst']));
    $output = path_form(path_load($pid));
  }
  else {
    $output = path_form();
  }

  return $output;
}
?>
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.