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_delete.inc
11 11
 * @ingroup views_field_handlers
12 12
 */
13 13
class views_handler_field_comment_link_delete extends views_handler_field_comment_link {
14
  function access() {
15
    //needs permission to administer comments in general
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function access() {
19
    // Needs permission to administer comments in general.
16 20
    return user_access('administer 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('delete');
21 28
    $cid =  $this->get_value($values, 'cid');
22 29

  
......
26 33

  
27 34
    return $text;
28 35
  }
36

  
29 37
}

Formats disponibles : Unified diff