You are here

views_conditional.module in Views Conditional 7

Views condition is a simple module that allows you to define conditionals (if xxx then yyy) with fields in views. Conditions include:

  • Equal to
  • NOT equal to
  • Greater than
  • Less than
  • Empty
  • NOT empty
  • Contains
  • Does NOT Contain
  • Length Equal to
  • Length Not Equal to
  • Length Greater than
  • Length Less than

Views conditionals allows you to output text based on the result of the condition.

@author MChittenden

File

views_conditional.module
View source
<?php

/**
 * @file
 * Views condition is a simple module that allows
 * you to define conditionals (if xxx then yyy) with
 * fields in views.  Conditions include:
 *   - Equal to
 *   - NOT equal to
 *   - Greater than
 *   - Less than
 *   - Empty
 *   - NOT empty
 *   - Contains
 *   - Does NOT Contain
 *   - Length Equal to
 *   - Length Not Equal to
 *   - Length Greater than
 *   - Length Less than
 *
 * Views conditionals allows you to output text
 * based on the result of the condition.
 *
 * @author MChittenden
 */

/**
 * Implements hook_views_api().
 */
function views_conditional_views_api() {
  return array(
    'api' => '3',
    'path' => drupal_get_path('module', 'views_conditional') . '/includes/views',
  );
}

Functions

Namesort descending Description
views_conditional_views_api Implements hook_views_api().