Ignore:
Timestamp:
Apr 15, 2011, 2:06:55 PM (13 years ago)
Author:
patdenice
Message:

feature:2264
Modify triggers for prefilters: there is now two triggers.
Order prefilters by alphabetic order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_global.php

    r10008 r10380  
    405405$base_url = get_root_url().'admin.php';
    406406
     407$prefilters = array();
     408
     409array_push($prefilters,
     410  array('ID' => 'caddie', 'NAME' => l10n('caddie')),
     411  array('ID' => 'last import', 'NAME' => l10n('last import')),
     412  array('ID' => 'with no album', 'NAME' => l10n('with no album')),
     413  array('ID' => 'with no tag', 'NAME' => l10n('with no tag')),
     414  array('ID' => 'duplicates', 'NAME' => l10n('duplicates')),
     415  array('ID' => 'all photos', 'NAME' => l10n('All'))
     416);
     417
     418if ($conf['enable_synchronization'])
     419{
     420  array_push($prefilters,
     421    array('ID' => 'with no virtual album', 'NAME' => l10n('with no virtual album'))
     422  );
     423}
     424
     425$prefilters = trigger_event('get_batch_manager_prefilters', $prefilters);
     426usort($prefilters, 'UC_name_compare');
     427
    407428$template->assign(
    408429  array(
     430    'prefilters' => $prefilters,
    409431    'filter' => $_SESSION['bulk_manager_filter'],
    410432    'selection' => $collection,
Note: See TracChangeset for help on using the changeset viewer.