Ignore:
Timestamp:
Jun 20, 2011, 9:05:36 AM (13 years ago)
Author:
Mattias
Message:

Small changes in comment's, removed unnescessary code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/batch_single.php

    r11423 r11439  
    1010add_event_handler('loc_begin_admin', 'set_prefilter_batch_single', 55 );
    1111
     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
    1215function set_prefilter_batch_single()
    1316{
     17        //mail("matheiusb@gmail.com", "Content of $content", $content);
    1418        global $template;
    15         $template->set_prefilter('picture', 'copyrights_batch_single');
     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        //}
    1642}
    1743
Note: See TracChangeset for help on using the changeset viewer.