You are here

views_custom_conditions.module in Views Custom Conditions 7

Provides an display extender plugin example.

File

views_custom_conditions.module
View source
<?php

global $_views_custom_conditions_query_string;

/**
 * @file
 * Provides an display extender plugin example.
 */

/**
 * Implements hook_views_api().
 */
function views_custom_conditions_views_api() {
  return array(
    'api' => 3,
    'path' => drupal_get_path('module', 'views_custom_conditions'),
  );
}

/**
 * Implements hook_help().
 */
function views_custom_conditions_help($path, $arg) {
  if ($path == 'admin/help#views_custom_conditions') {
    $html = '<p>' . t('This <strong>Views Custom Conditions</strong> module facilitates the site administrator to inject index hint into a views query. ‘Views’ is a powerful and highly flexible module that provides website builders with critical list making abilities. It generates a dynamic SQL query according to views construction for displaying data. So, to implement indexes in these SQL, this module can be really helpful. <br /><br />While using the USE INDEX syntax, administrators/users can tell MySQL which index to prefer when it executes a query. This saves time and makes upto 50 times faster queries.<br /><br />Please consult the README.txt before you install this module.
') . '</p>';
    return $html;
  }
}