You are here

function path_redirect_admin_redirects_update_validate in Path redirect 6

Validate node_admin_nodes form submissions.

Check if any nodes have been selected to perform the chosen 'Update option' on.

1 string reference to 'path_redirect_admin_redirects_update_validate'
path_redirect_admin_redirects in ./path_redirect.admin.inc
Render a list of redirects for the main admin page.

File

./path_redirect.admin.inc, line 246
Administrative page callbacks for the path_redirect module.

Code

function path_redirect_admin_redirects_update_validate($form, &$form_state) {

  // Error if there are no items to select.
  if (!is_array($form_state['values']['rids']) || !count(array_filter($form_state['values']['rids']))) {
    form_set_error('', t('No redirects selected.'));
  }
}