node_admin_nodes_validate

  1. drupal
    1. 4.7
    2. 5 node.module
    3. 6 node.admin.inc
    4. 7 node.admin.inc
Versions
4.7 node_admin_nodes_validate($form_id, $edit)
5 node_admin_nodes_validate($form_id, $form_values)
6 – 7 node_admin_nodes_validate($form, &$form_state)

Code

modules/node.module, line 1131

<?php
function node_admin_nodes_validate($form_id, $edit) {
  $edit['nodes'] = array_diff($edit['nodes'], array(0));
  if (count($edit['nodes']) == 0) {
    if ($edit['operation'] == 'delete') {
      form_set_error('', t('Please select some items to perform the delete operation.'));
    }
    else {
      form_set_error('', t('Please select some items to perform the update on.'));
    }
  }
}
?>