1 path.admin.inc path_admin_edit($path = array())

Page callback: Returns a form creating or editing an 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

core/modules/path/path.admin.inc, line 101
Admin page callbacks for the Path module.

Code

function path_admin_edit($path = array()) {
  if ($path) {
    backdrop_set_title(t('Edit URL alias %alias', array('%alias' => $path['alias'])), PASS_THROUGH);
    $output = backdrop_get_form('path_admin_form', $path);
  }
  else {
    backdrop_set_title(t('Add URL alias'));
    $output = backdrop_get_form('path_admin_form');
  }

  return $output;
}