Changeset 11439 for extensions/Copyrights/batch_single.php
- Timestamp:
- Jun 20, 2011, 9:05:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/batch_single.php
r11423 r11439 10 10 add_event_handler('loc_begin_admin', 'set_prefilter_batch_single', 55 ); 11 11 12 // Change the variables used by the function that changes the template 13 //add_event_handler('loc_begin_admin', 'copyrights_add_bsm_vars_to_template'); 14 12 15 function set_prefilter_batch_single() 13 16 { 17 //mail("matheiusb@gmail.com", "Content of $content", $content); 14 18 global $template; 15 $template->set_prefilter('picture', 'copyrights_batch_single'); 19 $template->set_prefilter('batch_manager_unit', 'copyrights_batch_single'); 20 } 21 22 function copyrights_batch_single($content, &$smarty) 23 { 24 //mail("matheiusb@gmail.com", "Content of $content", $content); 25 //$content = $content.'<div>DWO TEST</div>'; 26 return $content; 27 } 28 29 function copyrights_add_bsm_vars_to_template() 30 { 31 //global $page, $template, $prefixeTable; 32 33 // Show block only on the photo page 34 //if ( !empty($page['image_id']) ) 35 //{ 36 // Sending data to the template 37 //$template->assign( 38 //array ( 39 //'CR_TEST' => 'TEST' 40 // )); 41 //} 16 42 } 17 43
Note: See TracChangeset
for help on using the changeset viewer.