function views_bulk_operations_get_applicable_operations in Views Bulk Operations (VBO) 7.3
Get all operations that match the current entity type.
Parameters
$entity_type: Entity type.
$options: An array of options for all operations, in the form of $operation_id => $operation_options.
1 call to views_bulk_operations_get_applicable_operations()
- views_bulk_operations_handler_field_operations::options_form in views/
views_bulk_operations_handler_field_operations.inc - Default options form provides the label widget that all fields should have.
File
- ./
views_bulk_operations.module, line 267 - Allows operations to be performed on items selected in a view.
Code
function views_bulk_operations_get_applicable_operations($entity_type, $options) {
$operations = array();
foreach (views_bulk_operations_get_operation_info() as $operation_id => $operation_info) {
if ($operation_info['type'] == $entity_type || $operation_info['type'] == 'entity' || $operation_info['type'] == 'system') {
$options[$operation_id] = !empty($options[$operation_id]) ? $options[$operation_id] : array();
$operations[$operation_id] = views_bulk_operations_get_operation($operation_id, $entity_type, $options[$operation_id]);
}
}
return $operations;
}