You are here

views_rules_test.module in Views Rules 7

Test implementations for Views Rules.

File

tests/views_rules_test.module
View source
<?php

/**
 * @file
 * Test implementations for Views Rules.
 */

/**
 * Implements hook_views_api().
 */
function views_rules_test_views_api() {
  return array(
    'version' => '3.0',
  );
}

/**
 * Iterable implementation for testing iterator display.
 */
class ViewsRulesTestIterable implements ViewsRulesIterable {
  public $rows = array();

  /**
   * Evaluates a view row in the loop.
   */
  public function evaluateRow(array $data) {
    $this->rows[] = $data;
  }
  public function reset() {
    $this->rows = array();
    return $this;
  }

}

Functions

Namesort descending Description
views_rules_test_views_api Implements hook_views_api().

Classes

Namesort descending Description
ViewsRulesTestIterable Iterable implementation for testing iterator display.