source: extensions/Copyrights/batch_single.php @ 11439

Last change on this file since 11439 was 11439, checked in by Mattias, 13 years ago

Small changes in comment's, removed unnescessary code

File size: 1.1 KB
Line 
1<?php
2
3/*
4Try 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
10add_event_handler('loc_begin_admin', 'set_prefilter_batch_single', 55 );
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
15function set_prefilter_batch_single()
16{
17        //mail("matheiusb@gmail.com", "Content of $content", $content);
18        global $template;
19        $template->set_prefilter('batch_manager_unit', 'copyrights_batch_single');
20}
21
22function 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
29function 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        //}
42}
43
44?>
Note: See TracBrowser for help on using the repository browser.