function node_accessibility_validate_rules_action in Node Accessibility 7
Action: Perform accessibility validation on a node.
$param object $node A node object.
Return value
An array containing the node object stored in the key called 'node' and the validation results (if any) stored in the key called 'results'.
1 string reference to 'node_accessibility_validate_rules_action'
- node_accessibility_rules_action_info in ./
node_accessibility.rules.inc - Implements hook_rules_action_info() on behalf of the node module.
File
- ./
node_accessibility.rules.inc, line 136 - Rules integration file for node accessibility.
Code
function node_accessibility_validate_rules_action($node) {
if (!is_object($node)) {
if (class_exists('cf_error')) {
cf_error::invalid_object('node');
}
return array(
'node' => $node,
);
}
$results = actions_do('node_accessibility_validate_action', $node);
if (!isset($results['node_accessibility_validate_action'])) {
return array(
'node' => $node,
'validation_results' => $results['node_accessibility_validate_action'],
);
}
return array(
'node' => $node,
);
}