You are here

function cmf_admin_nodes_form_validate in Content Management Filter 5

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

Form validation before submit. \n 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:

See also

cmf_admin_nodes_form()

cmf_admin_nodes_form_submit()

File

./node.inc, line 108
Content management filter module file

Code

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