function node_admin_nodes_validate
Same name and namespace in other branches
- 6.x drupal-6.x/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 drupal-7.x/
modules/ node/ node.admin.inc - Form builder: Builds the node administration overview.
Archivo
- drupal-7.x/
modules/ node/ node.admin.inc, line 608 - Content administration and module settings UI.
Código
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.'));
}
}