You are here

function rb_views_rules_action_info in Rules Bonus Pack 7

Implements hook_rules_action_info().

File

./rb_views.rules.inc, line 135
Rules plugins related to Views.

Code

function rb_views_rules_action_info() {
  $actions = array(
    'rb_views_handler_remove' => array(
      'label' => t('Unset a view handler'),
      'group' => t('Rules Bonus: Views'),
      'parameter' => array(
        'view' => array(
          'type' => 'rb_views_view',
          'label' => t('View'),
          'restriction' => 'select',
        ),
        'handler' => array(
          'type' => 'text',
          'label' => t('Handler type'),
          'options list' => 'rb_views_get_views_handlers',
          'restriction' => 'input',
        ),
        'alias' => array(
          'type' => 'text',
          'label' => t('Handler alias'),
        ),
      ),
    ),
  );

  // @TODO: Create actions to build, execute and render a view. But for that to
  // make sense, it must be possible to load a view manually.
  return $actions;
}