You are here

function bat_unit_rules_action_info in Booking and Availability Management Tools for Drupal 7

Implements hook_rules_action_info().

File

modules/bat_unit/bat_unit.rules.inc, line 97

Code

function bat_unit_rules_action_info() {
  $default = array(
    'group' => t('Type Revisioning'),
  );
  return array(
    'bat_type_revisioning_rules_action_publish_latest' => $default + array(
      'label' => t('Publish the most recent pending revision'),
      'parameter' => array(
        'bat_type' => array(
          'type' => 'bat_type',
          'label' => t('type'),
        ),
      ),
    ),
    'bat_type_revisioning_rules_action_load_current' => $default + array(
      'label' => t('Load current revision of type'),
      'parameter' => array(
        'bat_type' => array(
          'type' => 'bat_type',
          'label' => t('type'),
        ),
      ),
      'new variables' => array(
        'loaded_current_revision' => array(
          'type' => 'bat_type',
          'label' => t('Loaded current revision of type'),
          'save' => FALSE,
          'label callback' => 'revisioning_rules_loaded_current_label',
        ),
      ),
    ),
  );
}