Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/handlers/views_handler_filter_equality.inc
6 6
 */
7 7

  
8 8
/**
9
 * Simple filter to handle equal to / not equal to filters
9
 * Simple filter to handle equal to / not equal to filters.
10 10
 *
11 11
 * @ingroup views_filter_handlers
12 12
 */
13 13
class views_handler_filter_equality extends views_handler_filter {
14
  // exposed filter options
15
  var $always_multiple = TRUE;
16 14

  
17 15
  /**
18
   * Provide simple equality operator
16
   * Exposed filter options.
19 17
   */
20
  function operator_options() {
18
  public $always_multiple = TRUE;
19

  
20
  /**
21
   * Provide simple equality operator.
22
   */
23
  public function operator_options() {
21 24
    return array(
22 25
      '=' => t('Is equal to'),
23 26
      '!=' => t('Is not equal to'),
......
25 28
  }
26 29

  
27 30
  /**
28
   * Provide a simple textfield for equality
31
   * Provide a simple textfield for equality.
29 32
   */
30
  function value_form(&$form, &$form_state) {
33
  public function value_form(&$form, &$form_state) {
31 34
    $form['value'] = array(
32 35
      '#type' => 'textfield',
33 36
      '#title' => t('Value'),
......
42 45
      }
43 46
    }
44 47
  }
48

  
45 49
}

Formats disponibles : Unified diff