aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-15 12:08:56 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-15 12:08:56 +0000
commitb3e98a2dd271a8abfec866ad04eeb3b27850f4a6 (patch)
tree804102ab07f303ac98a958ec01e1f369af5661a3 /admin/batch_manager_global.php
parent7a2bc12900d8e6d0748c5b28a03c8a2ca7314157 (diff)
merge r10380 from trunk to branch 2.2
feature:2264 Modify triggers for prefilters: there is now two triggers. Order prefilters by alphabetic order. git-svn-id: http://piwigo.org/svn/branches/2.2@10381 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_global.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 93f8ffa6c..11cafe02d 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -404,8 +404,30 @@ $template->set_filenames(array('batch_manager_global' => 'batch_manager_global.t
$base_url = get_root_url().'admin.php';
+$prefilters = array();
+
+array_push($prefilters,
+ array('ID' => 'caddie', 'NAME' => l10n('caddie')),
+ array('ID' => 'last import', 'NAME' => l10n('last import')),
+ array('ID' => 'with no album', 'NAME' => l10n('with no album')),
+ array('ID' => 'with no tag', 'NAME' => l10n('with no tag')),
+ array('ID' => 'duplicates', 'NAME' => l10n('duplicates')),
+ array('ID' => 'all photos', 'NAME' => l10n('All'))
+);
+
+if ($conf['enable_synchronization'])
+{
+ array_push($prefilters,
+ array('ID' => 'with no virtual album', 'NAME' => l10n('with no virtual album'))
+ );
+}
+
+$prefilters = trigger_event('get_batch_manager_prefilters', $prefilters);
+usort($prefilters, 'UC_name_compare');
+
$template->assign(
array(
+ 'prefilters' => $prefilters,
'filter' => $_SESSION['bulk_manager_filter'],
'selection' => $collection,
'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')),