Working with row delete in a table

andy2009 - October 29, 2009 - 21:33
Project:Delete all
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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

#1

kbahey - October 30, 2009 - 01:42
Status:active» won't fix

This is unrelated to the delete all module.

#2

andy2009 - November 12, 2009 - 15:30

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 = " ";

}

 
 

Drupal is a registered trademark of Dries Buytaert.