function views_bulk_operations_condition_result_count in Views Bulk Operations (VBO) 7.3
The 'views_bulk_operations_condition_result_count' condition.
Parameters
$view: A string in the format "$view_name|$display_name".
$args: Arguments that should be passed to the View.
$minimum: An integer representing the minimum number of results that satisfies the condition.
Return value
TRUE if the view has more than $minimum results, FALSE otherwise.
File
- ./
views_bulk_operations.rules.inc, line 153 - Views Bulk Operations conditions and actions for Rules.
Code
function views_bulk_operations_condition_result_count($view, $args, $minimum) {
$vbo = _views_bulk_operations_rules_get_field($view, $args);
return count($vbo->view->result) >= $minimum;
}