diff options
author | plegall <plg@piwigo.org> | 2014-09-01 18:45:00 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-09-01 18:45:00 +0000 |
commit | 4931295d78d19c212ce42349afda0b1a360f330e (patch) | |
tree | fff3fe5e424676b4e5ea03697ca9b8ef9f78da97 /admin/batch_manager.php | |
parent | ab9e6e33bffe02d0367cefcca4800ca299ee8f90 (diff) |
feature 3130: new triggers batch_manager_register_filters and
batch_manager_perform_filters to simplify adding filters in
Batch Manager with a plugin.
git-svn-id: http://piwigo.org/svn/trunk@29377 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager.php')
-rw-r--r-- | admin/batch_manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php index 26f764e0b..602ec07b6 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -160,6 +160,8 @@ if (isset($_POST['submitFilter'])) { $_SESSION['bulk_manager_filter']['search']['q'] = $_POST['q']; } + + trigger_notify('batch_manager_register_filters'); } // filters from url elseif (isset($_GET['filter'])) @@ -479,6 +481,8 @@ if (isset($_SESSION['bulk_manager_filter']['search'])) $filter_sets[] = $res['items']; } +$filter_sets = trigger_change('batch_manager_perform_filters', $filter_sets); + $current_set = array_shift($filter_sets); foreach ($filter_sets as $set) { |