You are here

public function link_views_handler_filter_protocol::operators in Link 7

Same name and namespace in other branches
  1. 6.2 views/link_views_handler_filter_protocol.inc \link_views_handler_filter_protocol::operators()
  2. 6 views/link_views_handler_filter_protocol.inc \link_views_handler_filter_protocol::operators()

Define the operators supported for protocols.

Overrides views_handler_filter_string::operators

File

views/link_views_handler_filter_protocol.inc, line 32
Contains filter handlers for protocol filters with views.

Class

link_views_handler_filter_protocol
Filter handler for limiting a view to URLs of a certain protocol.

Code

public function operators() {
  $operators = array(
    'OR' => array(
      'title' => t('Is one of'),
      'short' => t('='),
      'method' => 'op_protocol',
      'values' => 1,
    ),
  );
  return $operators;
}