Changeset 29378 for extensions
- Timestamp:
- Sep 1, 2014, 8:46:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/batch_manager_added_by/main.inc.php
r26742 r29378 74 74 } 75 75 76 add_event_handler(' loc_begin_element_set_global', 'bmab_perform_filter', 50, 2);77 function bmab_ perform_filter()76 add_event_handler('batch_manager_register_filters', 'bmab_register_filter', 50, 2); 77 function bmab_register_filter() 78 78 { 79 79 global $page; … … 84 84 $_SESSION['bulk_manager_filter']['added_by'] = $_POST['filter_added_by']; 85 85 } 86 } 86 87 88 add_event_handler('batch_manager_perform_filters', 'bmab_perform_filter'); 89 function bmab_perform_filter($filter_sets) 90 { 87 91 if (isset($_SESSION['bulk_manager_filter']['added_by'])) 88 92 { … … 93 97 WHERE added_by = '.$_SESSION['bulk_manager_filter']['added_by'].' 94 98 ;'; 95 if (empty($page['cat_elements_id'])) 96 { 97 $page['cat_elements_id'] = array_from_query($query, 'id'); 98 } 99 else 100 { 101 $page['cat_elements_id'] = array_intersect($page['cat_elements_id'], array_from_query($query, 'id')); 102 } 99 $filter_sets[] = array_from_query($query, 'id'); 103 100 } 101 102 return $filter_sets; 104 103 } 105 104 ?>
Note: See TracChangeset
for help on using the changeset viewer.