| Versions | |
|---|---|
| 4.7 – 5 | path_admin_delete_confirm($pid) |
| 6 | path_admin_delete_confirm($form_state, |
| 7 | path_admin_delete_confirm($form, &$form_state, $path) |
Menu callback; confirms deleting an URL alias
modules/
<?php
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;
}
?>