function _nodesinblock_validate in Nodes In Block 7
Same name and namespace in other branches
- 6 nodesinblock.module \_nodesinblock_validate()
Function callback: validate node. Returns error if visibility is empty and status is enabled.
1 call to _nodesinblock_validate()
- nodesinblock_node_validate in ./
nodesinblock.module - Implements hook_node_validate().
File
- ./
nodesinblock.module, line 308 - Nodes in block makes it possible to add multiple nodes in one block.
Code
function _nodesinblock_validate($node) {
$visibility = $node->nodesinblock_visibility;
if ($node->nodesinblock_delta != -1 && empty($visibility)) {
form_set_error('nodesinblock_visibility', t('Visibility field is required.'));
}
}