function asset_delete_confirm in Asset 5.2
Menu callback -- ask for confirmation of asset deletion
Related topics
1 string reference to 'asset_delete_confirm'
- asset_menu in ./
asset.module - Implementation of hook_menu().
File
- ./
asset.module, line 706 - Main module.
Code
function asset_delete_confirm($asset) {
$form['aid'] = array(
'#type' => 'value',
'#value' => $asset->aid,
);
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $asset->title,
)), isset($_GET['destination']) ? $_GET['destination'] : 'asset/' . $asset->aid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}