node_admin_nodes_validate

5 node.module node_admin_nodes_validate($form_id, $form_values)
6 node.admin.inc node_admin_nodes_validate($form, &$form_state)
7 node.admin.inc node_admin_nodes_validate($form, &$form_state)
8 node.admin.inc node_admin_nodes_validate($form, &$form_state)

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.'));
    }
  }
}
Login or register to post comments