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/profile/views_handler_field_profile_list.inc
11 11
 * @ingroup views_field_handlers
12 12
 */
13 13
class views_handler_field_profile_list extends views_handler_field_prerender_list {
14

  
14 15
  /**
15 16
   * Break up our field into a proper list.
16 17
   */
17
  function pre_render(&$values) {
18
  public function pre_render(&$values) {
18 19
    $this->items = array();
19 20
    foreach ($values as $value) {
20 21
      $field = $this->get_value($value);
......
27 28
    }
28 29
  }
29 30

  
30
  function render_item($count, $item) {
31
  /**
32
   * {@inheritdoc}
33
   */
34
  public function render_item($count, $item) {
31 35
    return $item['item'];
32 36
  }
33 37

  
34
  function document_self_tokens(&$tokens) {
38
  /**
39
   * {@inheritdoc}
40
   */
41
  public function document_self_tokens(&$tokens) {
35 42
    $tokens['[' . $this->options['id'] . '-item' . ']'] = t('The text of the profile item.');
36 43
  }
37 44

  
38
  function add_self_tokens(&$tokens, $item) {
45
  /**
46
   * {@inheritdoc}
47
   */
48
  public function add_self_tokens(&$tokens, $item) {
39 49
    $tokens['[' . $this->options['id'] . '-item' . ']'] = $item['item'];
40 50
  }
51

  
41 52
}

Formats disponibles : Unified diff