I am a newbie to Drupal, Can any help me with the following issue.
I have a list of records displayed in a table format along with edit and delete link buttons for each record.
Is there any way that I can delete a complete record on clicking delete buttons in a particular row.

Please let me know if u need any further information.

Thanks

Comments

kbahey’s picture

Status: Active » Closed (won't fix)

This is unrelated to the delete all module.

andy2009’s picture

I got this working fine with the following code

MENU ITEM
==========
$items['your page'] = array(
'title' => 'Delete',
'description' => 'xxxxxxx DELETE ',
'page callback' => 'drupal_get_form',
'page arguments' => array('funtio_name', 1),
'access arguments' =>array('access list'),
'file' => 'xxxxx.inc',
'type' => MENU_CALLBACK,
);

function funtion_name(&$form_state) {

return confirm_form($form,
t('Are you sure you want to delete the record for %xxxxx?', array('%xxxxx' => $name)),
'hm',
t('This action cannot be undone.'),
t('Delete'), t('Cancel'));
}

function funtion_name_submit($form, &$form_state) {

delete_query = " ";

}