path_admin_edit

Definition

path_admin_edit($pid = 0)
path/path.module, line 77

Description

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

Code

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