function views_bulk_operations_handler_field_operations::unpack_operations in Views Bulk Operations (VBO) 7.3
File
- views/
views_bulk_operations_handler_field_operations.inc, line 95 - Views field handler. Contains all relevant VBO options and related logic. Implements the Views Form API.
Class
- views_bulk_operations_handler_field_operations
- @file Views field handler. Contains all relevant VBO options and related logic. Implements the Views Form API.
Code
function unpack_operations(&$translatable, $storage, $option, $definition, $parents, $keys) {
$translatable[] = array(
'value' => t('- Choose an operation -'),
'keys' => array_merge($keys, array(
'noop',
)),
);
foreach ($storage[$option] as $key => $operation) {
if (!empty($operation['override_label']) && !empty($operation['label'])) {
$translatable[] = array(
'value' => $operation['label'],
'keys' => array_merge($keys, array(
$key,
)),
);
}
}
}