function views_bulk_operations_elements in Views Bulk Operations (VBO) 5
Same name and namespace in other branches
- 6.3 views_bulk_operations.module \views_bulk_operations_elements()
- 6 views_bulk_operations.module \views_bulk_operations_elements()
Implementation of hook_elements();
Here we define a views_node_selector form element that can be used to get back 1 or more nids using a view.
We use the #multiple field to indicate if this element is to be used for selecting a single item using radios or multiple items using checkboxes.
File
- ./
views_bulk_operations.module, line 986 - Allow bulk node operations directly within views.
Code
function views_bulk_operations_elements() {
$type['views_node_selector'] = array(
'#input' => TRUE,
'#process' => array(
'expand_views_node_selector' => array(),
),
'#view_nodes' => array(),
'#view' => '',
'#multiple' => FALSE,
'#disabled_nodes' => array(),
);
return $type;
}