function ccl_delete_confirm in Custom Contextual Links 7
Same name and namespace in other branches
- 8 ccl.admin.inc \ccl_delete_confirm()
Link delete confirmation page.
1 string reference to 'ccl_delete_confirm'
- ccl_menu in ./
ccl.module - Implements hook_menu().
File
- ./
ccl.admin.inc, line 347 - Provides administrative functions for ccl.
Code
function ccl_delete_confirm($form, &$form_state, $id) {
$form['clid'] = array(
'#type' => 'value',
'#value' => $id,
);
$title = db_query('SELECT title FROM {ccl} WHERE clid = :clid', array(
':clid' => $id,
))
->fetchField();
return confirm_form($form, t('Are you sure you want to delete the link %title?', array(
'%title' => $title,
)), 'admin/config/user-interface/ccl', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}