Changeset 26649


Ignore:
Timestamp:
01/12/14 12:24:02 (5 years ago)
Author:
mistic100
Message:

render_tag_name trigger transmit full tag data as second parameter

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r26461 r26649  
    344344    while ($row=pwg_db_fetch_assoc($result)) 
    345345    { 
    346       $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_event("render_tag_name", $row['name']).'</a>'; 
     346      $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_event("render_tag_name", $row['name'], $row).'</a>'; 
    347347    } 
    348348  } 
  • trunk/admin/include/functions.php

    r26461 r26649  
    21552155  { 
    21562156    $raw_name = $row['name']; 
    2157     $name = trigger_event('render_tag_name', $raw_name); 
     2157    $name = trigger_event('render_tag_name', $raw_name, $row); 
    21582158 
    21592159    $taglist[] =  array( 
  • trunk/admin/tags.php

    r26461 r26649  
    219219      while ($row = pwg_db_fetch_assoc($result)) 
    220220      { 
    221         $name_of_tag[ $row['id'] ] = trigger_event('render_tag_name', $row['name']); 
     221        $name_of_tag[ $row['id'] ] = trigger_event('render_tag_name', $row['name'], $row); 
    222222      } 
    223223 
     
    359359foreach ($orphan_tags as $tag) 
    360360{ 
    361   $orphan_tag_names[] = trigger_event('render_tag_name', $tag['name']); 
     361  $orphan_tag_names[] = trigger_event('render_tag_name', $tag['name'], $tag); 
    362362} 
    363363 
     
    394394{ 
    395395  $raw_name = $tag['name']; 
    396   $tag['name'] = trigger_event('render_tag_name', $raw_name); 
     396  $tag['name'] = trigger_event('render_tag_name', $raw_name, $tag); 
    397397  $tag['counter'] = intval(@$tag_counters[ $tag['id'] ]); 
    398398  $tag['U_VIEW'] = make_index_url(array('tags'=>array($tag))); 
  • trunk/include/functions_html.inc.php

    r26461 r26649  
    464464      .l10n('display photos linked to this tag') 
    465465      .'">' 
    466       .trigger_event('render_tag_name', $page['tags'][$i]['name']) 
     466      .trigger_event('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i]) 
    467467      .'</a>'; 
    468468 
  • trunk/include/functions_search.inc.php

    r26461 r26649  
    583583  foreach ( $all_tags as &$tag ) 
    584584  { 
    585     $tag['name'] = trigger_event('render_tag_name', $tag['name']); 
     585    $tag['name'] = trigger_event('render_tag_name', $tag['name'], $tag); 
    586586  } 
    587587} 
  • trunk/include/functions_tag.inc.php

    r26461 r26649  
    9090    { 
    9191      $row['counter'] = $counter; 
    92       $row['name'] = trigger_event('render_tag_name', $row['name']); 
     92      $row['name'] = trigger_event('render_tag_name', $row['name'], $row); 
    9393      $tags[] = $row; 
    9494    } 
     
    112112  while ($row = pwg_db_fetch_assoc($result)) 
    113113  { 
    114     $row['name'] = trigger_event('render_tag_name', $row['name']); 
     114    $row['name'] = trigger_event('render_tag_name', $row['name'], $row); 
    115115    $tags[] = $row; 
    116116  } 
     
    278278  while($row = pwg_db_fetch_assoc($result)) 
    279279  { 
    280     $row['name'] = trigger_event('render_tag_name', $row['name']); 
     280    $row['name'] = trigger_event('render_tag_name', $row['name'], $row); 
    281281    $tags[] = $row; 
    282282  } 
  • trunk/tools/triggers_list.php

    r26618 r26649  
    685685  'name' => 'render_tag_name', 
    686686  'type' => 'trigger_event', 
     687  'vars' => array('string', 'tag_name', 'array', 'tag'), 
     688  'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'admin\history.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'include\functions_html.inc.php (get_tags_content_title)', 'include\functions_search.inc.php (get_qsearch_tags)'), 
     689), 
     690array( 
     691  'name' => 'render_tag_url', 
     692  'type' => 'trigger_event', 
    687693  'vars' => array('string', 'tag_name'), 
    688   'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'index.php'), 
    689 ), 
    690 array( 
    691   'name' => 'render_tag_url', 
    692   'type' => 'trigger_event', 
    693   'vars' => array('string', 'tag_name'), 
    694   'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), 
     694  'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), 
    695695), 
    696696array( 
Note: See TracChangeset for help on using the changeset viewer.