| 5 node.module | node_admin_nodes_validate( |
| 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/ node.module, line 1599 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_admin_nodes_validate($form_id, $form_values) {
$nodes = array_filter($form_values['nodes']);
if (count($nodes) == 0) {
form_set_error('', t('No items selected.'));
}
}
Login or register to post comments