function node_accessibility_delete_action in Node Accessibility 7
Delete accessibility validation statistics for a node.
$param object $node A node object.
Return value
bool An TRUE on success, FALSE otherwise.
1 string reference to 'node_accessibility_delete_action'
- node_accessibility_delete_rules_action in ./
node_accessibility.rules.inc - Action: Delete accessibility validation statistics for a node.
File
- ./
node_accessibility.module, line 1264 - Module file for the node accessibility project.
Code
function node_accessibility_delete_action($node) {
if (!is_object($node)) {
if (class_exists('cf_error')) {
cf_error::invalid_object('node');
}
return FALSE;
}
$result = node_accessibility_delete_node_problems($node->nid, $node->vid);
if ($result === FALSE) {
return FALSE;
}
watchdog('actions', "Deleted accessibility validation statistics for node %nid:%vid.", array(
'%nid' => $node->nid,
'%vid' => $node->vid,
));
return TRUE;
}