You are here

function path_admin_edit in Drupal 6

Same name and namespace in other branches
  1. 4 modules/path.module \path_admin_edit()
  2. 5 modules/path/path.module \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.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;
}