function views_bulk_operations_rules_action_info in Views Bulk Operations (VBO) 7.3
Same name and namespace in other branches
- 6 views_bulk_operations.rules.inc \views_bulk_operations_rules_action_info()
Implements hook_rules_action_info().
File
- ./
views_bulk_operations.rules.inc, line 46 - Views Bulk Operations conditions and actions for Rules.
Code
function views_bulk_operations_rules_action_info() {
$actions = array();
$actions['views_bulk_operations_action_load_list'] = array(
'label' => t('Load a list of entity objects from a VBO View.'),
'parameter' => array(
'view' => array(
'type' => 'text',
'label' => t('View and display'),
'options list' => 'views_bulk_operations_views_list',
'description' => t('Select the view and display you want to use to
create a list.'),
'restriction' => 'input',
),
'args' => array(
'type' => 'text',
'label' => t('Arguments'),
'description' => t('Any arguments to pass to the view, one per line.
You may use token replacement patterns.'),
'optional' => TRUE,
),
),
'provides' => array(
'entity_list' => array(
'type' => 'list<entity>',
'label' => t('A list of entities'),
),
),
'group' => t('Views Bulk Operations'),
);
$actions['views_bulk_operations_action_load_id_list'] = array(
'label' => t('Load a list of entity ids from a VBO View.'),
'parameter' => array(
'view' => array(
'type' => 'text',
'label' => t('View and display'),
'options list' => 'views_bulk_operations_views_list',
'description' => t('Select the view and display you want to use to
create a list.'),
'restriction' => 'input',
),
'args' => array(
'type' => 'text',
'label' => t('Arguments'),
'description' => t('Any arguments to pass to the view, one per line.
You may use token replacement patterns.'),
'optional' => TRUE,
),
),
'provides' => array(
'entity_id_list' => array(
'type' => 'list<integer>',
'label' => t('A list of entity ids'),
),
),
'group' => t('Views Bulk Operations'),
);
return $actions;
}