path_admin_delete_confirm

5 path.module path_admin_delete_confirm($pid)
6 path.admin.inc path_admin_delete_confirm($form_state, $pid)
7 path.admin.inc path_admin_delete_confirm($form, &$form_state, $path)
8 path.admin.inc path_admin_delete_confirm($form, &$form_state, $path)

Menu callback; confirms deleting an URL alias

1 string reference to 'path_admin_delete_confirm'

File

modules/path/path.module, line 93
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($form, 
  t('Are you sure you want to delete path alias %title?', array('%title' => $path['dst'])), 
   isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/path', t('This action cannot be undone.'), 
  t('Delete'), t('Cancel') );
  }

  return $output;
}
Login or register to post comments