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/modules/user/views_handler_filter_user_roles.inc
11 11
 * @ingroup views_filter_handlers
12 12
 */
13 13
class views_handler_filter_user_roles extends views_handler_filter_many_to_one {
14
  function get_value_options() {
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function get_value_options() {
15 19
    $this->value_options = user_roles(TRUE);
16 20
    unset($this->value_options[DRUPAL_AUTHENTICATED_RID]);
17 21
  }
......
19 23
  /**
20 24
   * Override empty and not empty operator labels to be clearer for user roles.
21 25
   */
22
  function operators() {
26
  public function operators() {
23 27
    $operators = parent::operators();
24 28
    $operators['empty']['title'] = t("Only has the 'authenticated user' role");
25 29
    $operators['not empty']['title'] = t("Has roles in addition to 'authenticated user'");
26 30
    return $operators;
27 31
  }
32

  
28 33
}

Formats disponibles : Unified diff