function path_admin_edit

7.x path.admin.inc path_admin_edit($path = array())
6.x path.admin.inc path_admin_edit($pid = 0)

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

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

File

drupal-6.x/modules/path/path.admin.inc, line 66
Administrative page callbacks for the path module.

Code

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

  return $output;
}