path_admin_delete_confirm

Versions
4.7 – 5
path_admin_delete_confirm($pid)
6
path_admin_delete_confirm($form_state, $pid)
7
path_admin_delete_confirm($form, &$form_state, $path)

Menu callback; confirms deleting an URL alias

Code

modules/path/path.admin.inc, line 161

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.