function data_node_remove in Data 6
Remove a relationship between a data table and a node.
2 calls to data_node_remove()
- data_node_add_page in data_node/
data_node.module - Page callback for adding.
- data_node_remove_page in data_node/
data_node.module - Page callback for removing.
File
- data_node/
data_node.module, line 332 - Hooks and API functions for Data Node module.
Code
function data_node_remove($table, $id, $nid) {
db_query("DELETE FROM {data_table_node} WHERE data_table_name = '%s' AND id = %d AND nid = %d", $table
->get('name'), $id, $nid);
}