Projet

Général

Profil

Révision 4cfd8be6

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/includes/views/flag.views.inc
85 85

  
86 86
  // Argument for content ID, used for "Who's flagged this" views.
87 87
  $data['flagging']['entity_id'] = array(
88
    'title' => t('Content ID'),
88
    'title' => t('Entity ID'),
89 89
    'help' => t('The unique ID of the object that has been flagged.'),
90 90
    'argument' => array(
91 91
      'handler' => 'flag_handler_argument_entity_id',
......
122 122
    ),
123 123
  );
124 124

  
125
  $data['flagging']['sid'] = array(
126
    'title' => t('Flagging session ID'),
127
    'help' => t('The session ID of the flagging.'),
128
    'field' => array(
129
      'handler' => 'views_handler_field_numeric',
130
      'click sortable' => TRUE,
131
    ),
132
    'sort' => array(
133
      'handler' => 'views_handler_sort',
134
    ),
135
    'filter' => array(
136
      'handler' => 'views_handler_filter_numeric',
137
    ),
138
    'argument' => array(
139
      'handler' => 'views_handler_argument_numeric',
140
    ),
141
  );
142

  
125 143
  $data['flag_counts']['count'] = array(
126 144
    'title' => t('Flag counter'),
127 145
    'help' => t('The number of times a piece of content is flagged by any user.'),
......
264 282
  $default_flag = &drupal_static(__FUNCTION__, array());
265 283

  
266 284
  if (!array_key_exists($entity_type, $default_flag)) {
267
    $flag = array_shift(flag_get_flags($entity_type));
285
    $flags = flag_get_flags($entity_type);
286
    $flag = array_shift($flags);
268 287
    $default_flag[$entity_type] = $flag ? $flag->name : NULL;
269 288
  }
270 289

  

Formats disponibles : Unified diff