You are here

function rb_views_rules_event_info in Rules Bonus Pack 7

File

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

Code

function rb_views_rules_event_info() {
  $events = array(
    'rb_views_event_view_execute' => array(
      'label' => t('Before a view is being built'),
      'group' => t('Rules Bonus: Views'),
      'variables' => array(
        'view' => array(
          'type' => 'rb_views_view',
          'label' => t('Views display'),
        ),
      ),
    ),
    'rb_views_event_view_render' => array(
      'label' => t('After a view has been built'),
      'group' => t('Rules Bonus: Views'),
      'variables' => array(
        'view' => array(
          'type' => 'rb_views_view',
          'label' => t('Views display'),
        ),
      ),
    ),
    'rb_views_event_view_complete' => array(
      'label' => t('After a view has been rendered'),
      'group' => t('Rules Bonus: Views'),
      'variables' => array(
        'view' => array(
          'type' => 'rb_views_view',
          'label' => t('Views display'),
        ),
      ),
    ),
  );
  return $events;
}