function node_admin_nodes_validate in Drupal 5
Same name and namespace in other branches
- 4 modules/node.module \node_admin_nodes_validate()
- 6 modules/node/node.admin.inc \node_admin_nodes_validate()
- 7 modules/node/node.admin.inc \node_admin_nodes_validate()
File
- modules/
node/ node.module, line 1599 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_admin_nodes_validate($form_id, $form_values) {
$nodes = array_filter($form_values['nodes']);
if (count($nodes) == 0) {
form_set_error('', t('No items selected.'));
}
}