aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-13 13:16:38 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-13 13:16:38 +0000
commitfc3745167543cbb1416dff83ccc2a29a206cf291 (patch)
treeb12e1bf6cba75be9795ffc02b72e0d6867bfde48 /admin/batch_manager.php
parent7494a410566a9774a9fc6840c8d467229b86c6f1 (diff)
feature:2264
new trigger to add prefilter on batch manager git-svn-id: http://piwigo.org/svn/trunk@10354 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager.php')
-rw-r--r--admin/batch_manager.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index 232c84f08..20446e5d4 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -55,11 +55,7 @@ if (isset($_POST['submitFilter']))
if (isset($_POST['filter_prefilter_use']))
{
- $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates', 'all photos');
- if (in_array($_POST['filter_prefilter'], $prefilters))
- {
- $_SESSION['bulk_manager_filter']['prefilter'] = $_POST['filter_prefilter'];
- }
+ $_SESSION['bulk_manager_filter']['prefilter'] = $_POST['filter_prefilter'];
}
if (isset($_POST['filter_category_use']))
@@ -253,6 +249,8 @@ SELECT id
array_from_query($query, 'id')
);
}
+
+ $filter_sets = trigger_event('bulk_manager_prefilter', $filter_sets, $_SESSION['bulk_manager_filter']['prefilter']);
}
if (isset($_SESSION['bulk_manager_filter']['category']))