function node_admin_nodes_validate in Drupal 6
Same name and namespace in other branches
- 4 modules/node.module \node_admin_nodes_validate()
- 5 modules/node/node.module \node_admin_nodes_validate()
- 7 modules/node/node.admin.inc \node_admin_nodes_validate()
Validate node_admin_nodes form submissions.
Check if any nodes have been selected to perform the chosen 'Update option' on.
File
- modules/
node/ node.admin.inc, line 509 - Content administration and module settings UI.
Code
function node_admin_nodes_validate($form, &$form_state) {
$nodes = array_filter($form_state['values']['nodes']);
if (count($nodes) == 0) {
form_set_error('', t('No items selected.'));
}
}