You are here

function path_admin_delete_confirm in Drupal 4

Same name and namespace in other branches
  1. 5 modules/path/path.module \path_admin_delete_confirm()
  2. 6 modules/path/path.admin.inc \path_admin_delete_confirm()
  3. 7 modules/path/path.admin.inc \path_admin_delete_confirm()

Menu callback; confirms deleting an URL alias

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

File

modules/path.module, line 100
Enables users to rename URLs.

Code

function path_admin_delete_confirm($pid) {
  $path = path_load($pid);
  if (user_access('administer url aliases')) {
    $form['pid'] = array(
      '#type' => 'value',
      '#value' => $pid,
    );
    $output = confirm_form('path_admin_delete_confirm', $form, t('Are you sure you want to delete path alias %title?', array(
      '%title' => theme('placeholder', $path['dst']),
    )), $_GET['destination'] ? $_GET['destination'] : 'admin/path', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  }
  return $output;
}