Changeset 11488 for extensions/Copyrights/batch_single.php
- Timestamp:
- Jun 22, 2011, 8:08:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/batch_single.php
r11439 r11488 1 1 <?php 2 2 3 /* 4 Try to be able to change something in the batch manager single mode (unit mode) 5 */ 6 7 8 9 // Add a prefilter - whatever a prefilter may be - loc begin admin, because of this: http://piwigo.org/forum/viewtopic.php?id=17468 10 add_event_handler('loc_begin_admin', 'set_prefilter_batch_single', 55 ); 3 // Add a prefilter 4 add_event_handler('loc_begin_element_set_unit', 'set_prefilter_batch_single', 55 ); 11 5 12 6 // Change the variables used by the function that changes the template … … 15 9 function set_prefilter_batch_single() 16 10 { 17 //mail("matheiusb@gmail.com", "Content of $content", $content);18 11 global $template; 19 12 $template->set_prefilter('batch_manager_unit', 'copyrights_batch_single'); … … 22 15 function copyrights_batch_single($content, &$smarty) 23 16 { 24 //mail("matheiusb@gmail.com", "Content of $content", $content); 25 //$content = $content.'<div>DWO TEST</div>'; 26 return $content; 17 $search = '#<tr id="datecreate">#'; 18 19 $replacement = ' 20 <tr id="Copyrights_name"> 21 <tr id="datecreate">'; 22 23 return preg_replace($search, $replacement, $content); 27 24 } 28 25
Note: See TracChangeset
for help on using the changeset viewer.