Changeset 28629


Ignore:
Timestamp:
Jun 4, 2014, 1:20:32 PM (10 years ago)
Author:
mistic100
Message:

use trigger_notify and trigger_change

Location:
extensions/Comments_on_Albums/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/admin.php

    r26848 r28629  
    182182      'ID' => $row['id'],
    183183      'U_PICTURE' => get_root_url().'admin.php?page=album-'.$row['category_id'],
    184       'CATEGORY_NAME' => trigger_event('render_category_name', $row['name']),
     184      'CATEGORY_NAME' => trigger_change('render_category_name', $row['name']),
    185185      'TN_SRC' => $thumb,
    186       'AUTHOR' => trigger_event('render_comment_author', $author_name),
     186      'AUTHOR' => trigger_change('render_comment_author', $author_name),
    187187      'DATE' => format_date($row['date'], true),
    188       'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'),
     188      'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'),
    189189      'IS_PENDING' => ('false' == $row['validated']),
    190190      )
  • extensions/Comments_on_Albums/trunk/include/coa_albums.php

    r26848 r28629  
    156156
    157157  // allow plugins to notify what's going on
    158   trigger_action('user_comment_insertion',
     158  trigger_notify('user_comment_insertion',
    159159      array_merge($comm, array('action'=>$comment_action) ),
    160160      'album'
     
    284284        'ID' => $row['id'],
    285285        'AUTHOR' => trigger_change('render_comment_author', $row['author']),
    286         'DATE' => trigger_event($row['date'], true),
    287         'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'),
     286        'DATE' => trigger_change($row['date'], true),
     287        'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'),
    288288        'WEBSITE_URL' => $row['website_url'],
    289289        );
     
    387387  $template->set_filename('comments_on_albums', realpath(COA_PATH . 'template/albums.tpl'));
    388388
    389   trigger_action('loc_end_coa');
     389  trigger_notify('loc_end_coa');
    390390
    391391  if (isset($pwg_loaded_plugins['rv_tscroller']) and count($page['navigation_bar']) != 0)
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r26848 r28629  
    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/events.inc.php

    r26848 r28629  
    1010    )
    1111  {
    12     trigger_action('loc_begin_coa');
     12    trigger_notify('loc_begin_coa');
    1313    include(COA_PATH . 'include/coa_albums.php');
    1414  }
  • extensions/Comments_on_Albums/trunk/include/functions_comment.inc.php

    r26917 r28629  
    150150
    151151  // perform more spam check
    152   $comment_action = trigger_event('user_comment_check',
     152  $comment_action = trigger_change('user_comment_check',
    153153      $comment_action, $comm, 'album'
    154154    );
     
    243243                      'comment_id' => $comment_id
    244244                  ));
    245     trigger_action('user_comment_deletion', $comment_id, 'album');
     245    trigger_notify('user_comment_deletion', $comment_id, 'album');
    246246
    247247    return true;
     
    281281  // perform more spam check
    282282  $comment_action =
    283     trigger_event('user_comment_check',
     283    trigger_change('user_comment_check',
    284284      $comment_action,
    285285      array_merge($comment,
     
    413413  pwg_query($query);
    414414
    415   trigger_action('user_comment_validation', $comment_id, 'album');
     415  trigger_notify('user_comment_validation', $comment_id, 'album');
    416416}
  • extensions/Comments_on_Albums/trunk/stuffs_module/main.inc.php

    r26848 r28629  
    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']),
     211      'ALT' => trigger_change('render_category_name', $categories[$comment['comment_id']]['name']),
     212      'AUTHOR' => trigger_change('render_comment_author', $comment['author']),
    213213      'DATE'=> format_date($comment['date'], true),
    214       'CONTENT'=> trigger_event('render_comment_content',$comment['content'], 'album'),
     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.