function node_admin_nodes_validate in Drupal 7
Same name and namespace in other branches
- 4 modules/node.module \node_admin_nodes_validate()
- 5 modules/node/node.module \node_admin_nodes_validate()
- 6 modules/node/node.admin.inc \node_admin_nodes_validate()
Validate node_admin_nodes form submissions.
Checks whether any nodes have been selected to perform the chosen 'Update option' on.
See also
node_multiple_delete_confirm()
node_multiple_delete_confirm_submit()
1 string reference to 'node_admin_nodes_validate'
- node_admin_nodes in modules/
node/ node.admin.inc - Form builder: Builds the node administration overview.
File
- modules/
node/ node.admin.inc, line 616 - Content administration and module settings UI.
Code
function node_admin_nodes_validate($form, &$form_state) {
// Error if there are no items to select.
if (!is_array($form_state['values']['nodes']) || !count(array_filter($form_state['values']['nodes']))) {
form_set_error('', t('No items selected.'));
}
}