You are here

function views_bulk_operations_book_action_info in Views Bulk Operations (VBO) 7.3

Same name and namespace in other branches
  1. 6 actions/book.action.inc \views_bulk_operations_book_action_info()

@file Implements actions for managing books (book.module).

File

actions/book.action.inc, line 8
Implements actions for managing books (book.module).

Code

function views_bulk_operations_book_action_info() {
  $actions = array();
  if (module_exists('book')) {
    $actions['views_bulk_operations_move_to_book_action'] = array(
      'type' => 'node',
      'label' => t('Move to book'),
      'configurable' => TRUE,
      'behavior' => array(
        'changes_property',
      ),
      'triggers' => array(
        'any',
      ),
    );
    $actions['views_bulk_operations_remove_from_book_action'] = array(
      'type' => 'node',
      'label' => t('Remove from book'),
      'configurable' => FALSE,
      'triggers' => array(
        'any',
      ),
    );
  }
  return $actions;
}