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

Page callback: Returns a form creating or editing a path alias.

Parameters

$path: An array containing the path ID, source, alias, and language code.

Return value

A form for adding or editing a URL alias.

See also

path_menu()

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

File

modules/path/path.admin.inc, line 104
Administrative page callbacks for the path module.

Code

function path_admin_edit($path = array()) {
  if ($path) {
    drupal_set_title($path['alias']);
    $output = drupal_get_form('path_admin_form', $path);
  }
  else {
    $output = drupal_get_form('path_admin_form');
  }
  return $output;
}