function node_field_delete_node_fields in Node Field 7.2
Delete all node fields of node.
Parameters
object $node: Node to delete node field of.
Return value
bool Returns TRUE on success, FALSE on failure.
File
- includes/
node_field.api.inc, line 176 - API and helpers functions for Node Field module.
Code
function node_field_delete_node_fields($node) {
$values = [
'nid' => $node->nid,
];
$result = node_field_db_field_delete($values);
return $result;
}