function sf_queue_admin_delete_confirm in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 sf_queue/sf_queue.admin.inc \sf_queue_admin_delete_confirm()
@todo Please document this function.
See also
1 string reference to 'sf_queue_admin_delete_confirm'
- sf_queue_menu in sf_queue/
sf_queue.module - @file sf_queue.module Implements export queue and administrativa for Salesforce API
File
- sf_queue/
sf_queue.admin.inc, line 111 - Admin interface for the Salesforce Export Queue module.
Code
function sf_queue_admin_delete_confirm($form, &$form_state, $qid) {
if (strlen($qid) == 0 || !is_numeric($qid)) {
drupal_goto("admin/reports/sf_queue/");
}
// TODO Please convert this statement to the D7 database API syntax.
$results = db_query("SELECT count(id) count FROM {salesforce_export_queue} WHERE id=" . $qid)
->fetchObject();
if ($results->count == 0) {
drupal_goto("admin/reports/sf_queue/");
}
$form = array();
$form['_qid'] = array(
'#type' => 'value',
'#value' => $qid,
);
$question = t('Are you sure you want to delete the queue item number ' . $qid . '?');
return confirm_form($form, $question, "admin/reports/sf_queue", "<em>" . $question . "</em><br />" . t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}