node_admin_nodes_validate

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 1130

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.