You are here

function path_admin_delete_confirm in Drupal 7

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

Form constructor for the path deletion form.

Parameters

$path: The path alias that will be deleted.

See also

path_admin_delete_confirm_submit()

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

File

modules/path/path.admin.inc, line 243
Administrative page callbacks for the path module.

Code

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();
}