function views_bulk_operations_action_validate in Views Bulk Operations (VBO) 6
Same name and namespace in other branches
- 6.3 views_bulk_operations.module \views_bulk_operations_action_validate()
Form validate function for views_bulk_operations_action action.
1 call to views_bulk_operations_action_validate()
File
- ./
views_bulk_operations.module, line 1390 - Allows operations to be performed on items selected in a view.
Code
function views_bulk_operations_action_validate($form, $form_state) {
if (empty($form_state['values']['view_vid'])) {
form_set_error('view_vid', t('You must choose a view to be executed.'));
}
if (empty($form_state['values']['operation_key'])) {
form_set_error('operation_callback', t('You must choose an operation to be executed.'));
}
if ($form['#operation']) {
module_invoke_all('action_info');
// some validate functions are created dynamically...
_views_bulk_operations_action_validate($form['#operation'], $form, $form_state);
}
}