| @@ 1387-1400 (lines=14) @@ | ||
| 1384 | } |
|
| 1385 | ||
| 1386 | ||
| 1387 | protected function _delete_categories() |
|
| 1388 | { |
|
| 1389 | $cat_ids = isset($this->_req_data['VEN_CAT_ID']) ? (array) $this->_req_data['VEN_CAT_ID'] |
|
| 1390 | : (array) $this->_req_data['category_id']; |
|
| 1391 | ||
| 1392 | foreach ($cat_ids as $cat_id) { |
|
| 1393 | $this->_delete_category($cat_id); |
|
| 1394 | } |
|
| 1395 | ||
| 1396 | // doesn't matter what page we're coming from... we're going to the same place after delete. |
|
| 1397 | $query_args = array( |
|
| 1398 | 'action' => 'category_list', |
|
| 1399 | ); |
|
| 1400 | $this->_redirect_after_action(0, '', '', $query_args); |
|
| 1401 | } |
|
| 1402 | ||
| 1403 | ||
| @@ 2659-2672 (lines=14) @@ | ||
| 2656 | /** |
|
| 2657 | * Handles deleting categories. |
|
| 2658 | */ |
|
| 2659 | protected function _delete_categories() |
|
| 2660 | { |
|
| 2661 | $cat_ids = isset($this->_req_data['EVT_CAT_ID']) ? (array) $this->_req_data['EVT_CAT_ID'] |
|
| 2662 | : (array) $this->_req_data['category_id']; |
|
| 2663 | foreach ($cat_ids as $cat_id) { |
|
| 2664 | $this->_delete_category($cat_id); |
|
| 2665 | } |
|
| 2666 | // doesn't matter what page we're coming from... we're going to the same place after delete. |
|
| 2667 | $query_args = array( |
|
| 2668 | 'action' => 'category_list', |
|
| 2669 | ); |
|
| 2670 | $this->_redirect_after_action(0, '', '', $query_args); |
|
| 2671 | } |
|
| 2672 | ||
| 2673 | ||
| 2674 | /** |
|
| 2675 | * Handles deleting specific category. |
|