You are here

function views_bulk_operations_delete_action_info in Views Bulk Operations (VBO) 7.3

Same name and namespace in other branches
  1. 6.3 delete.action.inc \views_bulk_operations_delete_action_info()
  2. 6 actions/delete.action.inc \views_bulk_operations_delete_action_info()

@file Implements a generic entity delete action. Uses Entity API if available.

File

actions/delete.action.inc, line 8
Implements a generic entity delete action. Uses Entity API if available.

Code

function views_bulk_operations_delete_action_info() {
  return array(
    'views_bulk_operations_delete_item' => array(
      'type' => 'entity',
      'label' => t('Delete item'),
      'configurable' => FALSE,
      'behavior' => array(
        'deletes_property',
      ),
      'triggers' => array(
        'any',
      ),
    ),
    'views_bulk_operations_delete_revision' => array(
      'type' => 'entity',
      'label' => t('Delete revision'),
      'configurable' => FALSE,
      'behavior' => array(
        'deletes_property',
      ),
      'triggers' => array(
        'any',
      ),
    ),
  );
}