assign('added_by_options', $added_by_options); $template->assign( 'added_by_selected', isset($_SESSION['bulk_manager_filter']['added_by']) ? $_SESSION['bulk_manager_filter']['added_by'] : '' ); $template->set_prefilter('batch_manager_global', 'bmab_add_filter_prefilter'); } function bmab_add_filter_prefilter($content, &$smarty) { // first we add the (hidden by default) block to select the user $pattern = '#\s*

#ms'; $replacement = '

  • [x] {\'Added by %s\'|@translate|sprintf:""}
  • '; $content = preg_replace($pattern, $replacement, $content); // then we add the "Added by" in the filter selector $pattern = '#\s*