function path_admin_edit

cis7 path.admin.inc path_admin_edit($path = array())
cle7 path.admin.inc path_admin_edit($path = array())
elmsmedia7 path.admin.inc path_admin_edit($path = array())
icor7 path.admin.inc path_admin_edit($path = array())
meedjum_blog7 path.admin.inc path_admin_edit($path = array())
mooc7 path.admin.inc 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()

3 string references to 'path_admin_edit'
drupal-6.filled.database.php in modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.
path_menu in modules/path/path.module
Implements hook_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;
}