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/comment/views_handler_field_comment_link_reply.inc
11 11
 * @ingroup views_field_handlers
12 12
 */
13 13
class views_handler_field_comment_link_reply extends views_handler_field_comment_link {
14
  function access() {
15
    //check for permission to reply to comments
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function access() {
19
    // Check for permission to reply to comments.
16 20
    return user_access('post comments');
17 21
  }
18 22

  
19
  function render_link($data, $values) {
23
  /**
24
   * {@inheritdoc}
25
   */
26
  public function render_link($data, $values) {
20 27
    $text = !empty($this->options['text']) ? $this->options['text'] : t('reply');
21 28
    $nid =  $this->get_value($values, 'nid');
22 29
    $cid =  $this->get_value($values, 'cid');
......
26 33

  
27 34
    return $text;
28 35
  }
36

  
29 37
}

Formats disponibles : Unified diff