You are here

function cmf_admin_nodes_form_validate in Content Management Filter 7

Same name and namespace in other branches
  1. 5 node.inc \cmf_admin_nodes_form_validate()
  2. 6.2 node.inc \cmf_admin_nodes_form_validate()
  3. 6 node.inc \cmf_admin_nodes_form_validate()

Form validation before submit. We can't execute any 'Update options' if no nodes were selected.

Parameters

the ID of the passed form:

array with the form properties values:

File

./node.inc, line 129
@brief Content management filter node operations file,

Code

function cmf_admin_nodes_form_validate($form, &$form_state) {
  $nodes = array_filter($form_state['values']['nodes']);
  if (count($nodes) == 0) {
    form_set_error('', t('No items selected.'));
  }
}