Skip to content

Commit

Permalink
feature 3130: new triggers batch_manager_register_filters and
Browse files Browse the repository at this point in the history
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
  • Loading branch information
plegall committed Sep 1, 2014
1 parent ab9e6e3 commit 4931295
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/batch_manager.php
Expand Up @@ -160,6 +160,8 @@
{
$_SESSION['bulk_manager_filter']['search']['q'] = $_POST['q'];
}

trigger_notify('batch_manager_register_filters');
}
// filters from url
elseif (isset($_GET['filter']))
Expand Down Expand Up @@ -479,6 +481,8 @@
$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)
{
Expand Down

0 comments on commit 4931295

Please sign in to comment.