function ccl_delete_confirm in Custom Contextual Links 8
Same name and namespace in other branches
- 7 ccl.admin.inc \ccl_delete_confirm()
Link delete confirmation page.
2 string references to 'ccl_delete_confirm'
- CclDeleteConfirm::getFormId in src/
Form/ CclDeleteConfirm.php - Returns a unique string identifying the form.
- ccl_menu in ./
ccl.module - Implements hook_menu().
File
- ./
ccl.admin.inc, line 359 - 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'));
}