function views_bulk_operations_script_action_info in Views Bulk Operations (VBO) 6
Same name and namespace in other branches
- 6.3 script.action.inc \views_bulk_operations_script_action_info()
- 7.3 actions/script.action.inc \views_bulk_operations_script_action_info()
File
- actions/
script.action.inc, line 3
Code
function views_bulk_operations_script_action_info() {
$actions = array();
$actions['views_bulk_operations_script_action'] = array(
'type' => 'system',
'description' => t('Execute arbitrary PHP script'),
'configurable' => TRUE,
'hooks' => array(
'any' => TRUE,
),
);
// Provide a strict default permission if actions_permissions is disabled.
if (!module_exists('actions_permissions')) {
$actions['views_bulk_operations_script_action']['permissions'] = array(
'administer site configuration',
);
}
return $actions;
}