function views_bulk_operations_action_validate in Views Bulk Operations (VBO) 6.3
Same name and namespace in other branches
- 6 views_bulk_operations.module \views_bulk_operations_action_validate()
Form validate function for views_bulk_operations_action action.
File
- ./
views_bulk_operations.module, line 1247 - 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_callback'])) {
form_set_error('operation_callback', t('You must choose an operation to be executed.'));
}
}