Ignore:
Timestamp:
Dec 23, 2013, 11:37:13 AM (11 years ago)
Author:
mistic100
Message:

use new trigger methods and add extra param

Location:
extensions/Comments_on_Albums/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_albums.php

    r26089 r26110  
    156156
    157157  // allow plugins to notify what's going on
    158   trigger_action( 'user_comment_insertion',
    159       array_merge($comm, array('action'=>$comment_action) )
     158  trigger_notify('user_comment_insertion',
     159      array_merge($comm, array('action'=>$comment_action) ),
     160      'album'
    160161    );
    161162
     
    282283      $tpl_comment = array(
    283284        'ID' => $row['id'],
    284         'AUTHOR' => trigger_event('render_comment_author', $row['author']),
     285        'AUTHOR' => trigger_change('render_comment_author', $row['author']),
    285286        'DATE' => format_date($row['date'], true),
    286         'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'),
     287        'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'),
    287288        'WEBSITE_URL' => $row['website_url'],
    288289        );
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r26090 r26110  
    295295      'U_PICTURE' => $comment['cat_url'],
    296296      'src_image' => $comment['src_image'],
    297       'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']),
    298       'AUTHOR' => trigger_event('render_comment_author', $comment['author']),
     297      'ALT' => trigger_change('render_category_name', $categories[$comment['comment_id']]['name']),
     298      'AUTHOR' => trigger_change('render_comment_author', $comment['author']),
    299299      'WEBSITE_URL' => $comment['website_url'],
    300300      'DATE' => format_date($comment['date'], true),
    301       'CONTENT' => trigger_event('render_comment_content', $comment['content'], 'album'),
     301      'CONTENT' => trigger_change('render_comment_content', $comment['content'], 'album'),
    302302      );
    303303
  • extensions/Comments_on_Albums/trunk/include/functions_comment.inc.php

    r26089 r26110  
    149149
    150150  // perform more spam check
    151   $comment_action = trigger_event('user_comment_check',
    152       $comment_action, $comm
     151  $comment_action = trigger_change('user_comment_check',
     152      $comment_action, $comm, 'album'
    153153    );
    154154
     
    242242                      'comment_id' => $comment_id
    243243                  ));
    244     trigger_action('user_comment_deletion', $comment_id, 'category');
     244    trigger_notify('user_comment_deletion', $comment_id, 'album');
    245245
    246246    return true;
     
    280280  // perform more spam check
    281281  $comment_action =
    282     trigger_event('user_comment_check',
     282    trigger_change('user_comment_check',
    283283      $comment_action,
    284284      array_merge($comment,
    285285            array('author' => $GLOBALS['user']['username'])
    286             )
     286            ),
     287      'album'
    287288      );
    288289
     
    410411  pwg_query($query);
    411412
    412   trigger_action('user_comment_validation', $comment_id, 'category');
     413  trigger_notify('user_comment_validation', $comment_id, 'album');
    413414}
  • extensions/Comments_on_Albums/trunk/stuffs_module/main.inc.php

    r21347 r26110  
    209209      'U_PICTURE' => $comment['cat_url'],
    210210      'src_image' => $src_image,
    211       'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']),
    212       'AUTHOR' => trigger_event('render_comment_author', $comment['author']),
    213       'DATE'=>format_date($comment['date'], true),
    214       'CONTENT'=>trigger_event('render_comment_content',$comment['content']),
     211      'ALT' => trigger_change('render_category_name', $categories[$comment['comment_id']]['name']),
     212      'AUTHOR' => trigger_change('render_comment_author', $comment['author']),
     213      'DATE'=> format_date($comment['date'], true),
     214      'CONTENT'=> trigger_change('render_comment_content',$comment['content'], 'album'),
    215215      'WIDTH' => $datas[3],
    216216      'HEIGHT' => $datas[4],
Note: See TracChangeset for help on using the changeset viewer.