You are here

views_bulk_operations.rules.inc in Views Bulk Operations (VBO) 6.3

Same filename and directory in other branches
  1. 6 views_bulk_operations.rules.inc
  2. 7.3 views_bulk_operations.rules.inc

File

views_bulk_operations.rules.inc
View source
<?php

/**
 * Implementation of hook_rules_action_alter().
 */
function views_bulk_operations_rules_action_info_alter(&$actions) {
  foreach (module_invoke_all('views_bulk_operations_object_info') as $type => $info) {
    $actions['views_bulk_operations_action_' . $type] = array(
      'label' => t('Execute a VBO programmatically on !type', array(
        '!type' => $type,
      )),
      // Make sure there is something passed for $object to the action.
      'arguments' => array(
        'object' => array(
          'type' => $type,
          'default value' => NULL,
        ),
      ),
      'module' => 'Views Bulk Operations',
      'eval input' => array(),
      // Let the rules system for executing core style actions execute it.
      'base' => 'rules_core_action_execute',
      'action_name' => 'views_bulk_operations_action',
      'configurable' => TRUE,
    );
  }
}

Functions

Namesort descending Description
views_bulk_operations_rules_action_info_alter Implementation of hook_rules_action_alter().