You are here

function node_admin_nodes_validate in Drupal 4

Same name and namespace in other branches
  1. 5 modules/node/node.module \node_admin_nodes_validate()
  2. 6 modules/node/node.admin.inc \node_admin_nodes_validate()
  3. 7 modules/node/node.admin.inc \node_admin_nodes_validate()

File

modules/node.module, line 1130
The core that allows content to be submitted to the site.

Code

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.'));
    }
  }
}