Ignore:
Timestamp:
Jun 2, 2014, 9:55:46 AM (10 years ago)
Author:
mistic100
Message:

feature 3010 : replace trigger_action/event by trigger_notify/change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r26916 r28587  
    3232/**
    3333 * Does basic check on comment and returns action to perform.
    34  * This method is called by a trigger_event()
     34 * This method is called by a trigger_change()
    3535 *
    3636 * @param string $action before check
     
    212212
    213213  // perform more spam check
    214   $comment_action = trigger_event('user_comment_check',
     214  $comment_action = trigger_change('user_comment_check',
    215215      $comment_action, $comm
    216216    );
     
    304304                      'comment_id' => $comment_id
    305305                  ));
    306     trigger_action('user_comment_deletion', $comment_id);
     306    trigger_notify('user_comment_deletion', $comment_id);
    307307
    308308    return true;
     
    343343  // perform more spam check
    344344  $comment_action =
    345     trigger_event('user_comment_check',
     345    trigger_change('user_comment_check',
    346346                  $comment_action,
    347347                  array_merge($comment,
     
    510510 
    511511  invalidate_user_cache_nb_comments();
    512   trigger_action('user_comment_validation', $comment_id);
     512  trigger_notify('user_comment_validation', $comment_id);
    513513}
    514514
Note: See TracChangeset for help on using the changeset viewer.