function 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_admin_nodes()

node_admin_nodes_submit()

node_filter_form()

node_filter_form_submit()

node_multiple_delete_confirm()

node_multiple_delete_confirm_submit()

1 string reference to 'node_admin_nodes_validate'
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.

File

modules/node/node.admin.inc, line 616

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.