function path_admin_delete_confirm

7.x path.admin.inc path_admin_delete_confirm($form, &$form_state, $path)
6.x path.admin.inc path_admin_delete_confirm($form_state, $pid)

Menu callback; confirms deleting an URL alias

1 string reference to 'path_admin_delete_confirm'
path_menu in drupal-6.x/modules/path/path.module
Implementation of hook_menu().

File

drupal-6.x/modules/path/path.admin.inc, line 161
Administrative page callbacks for the path module.

Code

function path_admin_delete_confirm($form_state, $pid) {
  $path = path_load($pid);
  if (user_access('administer url aliases')) {
    $form['pid'] = array('#type' => 'value', '#value' => $pid);
    $output = confirm_form($form, 
    t('Are you sure you want to delete path alias %title?', array('%title' => $path['dst'])), 
    isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/path');
  }
  return $output;
}