function path_admin_edit in Drupal 4
Same name and namespace in other branches
- 5 modules/path/path.module \path_admin_edit()
- 6 modules/path/path.admin.inc \path_admin_edit()
- 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.module - Implementation of hook_menu().
File
- modules/
path.module, line 84 - 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(path_load($pid));
}
else {
$output = path_form();
}
return $output;
}