set_prefilter('batch_manager_unit', 'copyrights_batch_single'); } function copyrights_batch_single($content, &$smarty) { $search = "#{'Creation date'#"; // Not ideal, but ok for now :) // We use the from the Creation date, and give them a new $replacement = 'DWO TESTJE DWO TESTJE {\'Creation date\''; return preg_replace($search, $replacement, $content); // Dit is een interresant testje - deze functie word dus een aantal keren (3) aangeroepen, // en pas de laatste keer is bevat $content meer dan een aantal enters... //return $content.''; } function copyrights_add_bsm_vars_to_template() { //global $page, $template, $prefixeTable; // Show block only on the photo page //if ( !empty($page['image_id']) ) //{ // Sending data to the template //$template->assign( //array ( //'CR_TEST' => 'TEST' // )); //} } ?>