I have a content type on which I added a custom validation that there can't be more than 7 items of that content type that is marked as 'sticky'. That validation was added on the add and edit pages through
omhm_mod_form_blog_node_form_alter(&$form, &$form_state, $form_id) with the line
$form['#validate'] = 'omhm_mod_form_nouvelle_node_form_validate'; and my custom validation
Now I have to make a page with views bulk operations with the same custom validation in place ... how can I do that ?
I'm trying to add the custom vbo validation
views_bulk_operations_form_validate($form, &$form_state) to my
omhm_mod_views_bulk_operations_form_alter($form, &$form_state, $form_id) hook with the line
$form['select']['submit']['#validate'] = 'omhm_mod_carrousel_views_bulk_operations_form_validate'; but nothing happens.