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 187

<?php
function path_admin_delete_confirm($form, &$form_state, $path) {
  if (user_access('administer url aliases')) {
    $form_state['path'] = $path;
    return confirm_form(
      $form,
      t('Are you sure you want to delete path alias %title?',
      array('%title' => $path['alias'])),
      'admin/config/search/path'
    );
  }
  return array();
}
?>
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.