You are here

viewsphpfilter.module in Views PHP Filter 7

Same filename and directory in other branches
  1. 5 viewsphpfilter.module
  2. 6 viewsphpfilter.module

File

viewsphpfilter.module
View source
<?php

/**
 * Implementation of hook_help().
 */
function viewsphpfilter_help($path, $arg) {
  $output = '';
  switch ($path) {
    case "admin/help#viewsphpfilter":
      $output = '<p>' . t("A filter for the Views module.") . '</p>';
      $output = '<p>' . t("This filter will appear in the Views Filter dialog as a \"Node: Node ID\".  This filter takes PHP code as its value (with no open/close brackets), which should return an array of integers representing Node IDs to include or exclude.  The filter will evaluate the PHP and filter on the resulting array.  It can also (experimental) take a list of node IDs, separated by commas.") . '</p>';
      break;
  }
  return $output;
}
function viewsphpfilter_views_api() {
  return array(
    'api' => '2.0',
  );
}

Functions

Namesort descending Description
viewsphpfilter_help Implementation of hook_help().
viewsphpfilter_views_api