function path_admin_edit

path_admin_edit($path = array())

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()

File

modules/path/path.admin.inc, line 100
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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!path!path.admin.inc/function/path_admin_edit/7.x