You are here

function path_admin_edit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/path.module \path_admin_edit()
  2. 6 modules/path/path.admin.inc \path_admin_edit()
  3. 7 modules/path/path.admin.inc \path_admin_edit()

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

1 string reference to 'path_admin_edit'
path_menu in modules/path/path.module
Implementation of hook_menu().

File

modules/path/path.module, line 77
Enables users to rename URLs.

Code

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