Code Duplication    Length = 10-13 lines in 5 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 535-547 (lines=13) @@
532
533
534
535
	protected function _set_list_table_views_category_list() {
536
		$this->_views = array(
537
			'all' => array(
538
				'slug' => 'all',
539
				'label' => __('All', 'event_espresso'),
540
				'count' => 0,
541
				'bulk_action' => array(
542
					'delete_categories' => __('Delete Permanently', 'event_espresso'),
543
//					'export_categories' => __('Export Categories', 'event_espresso'),
544
					)
545
				)
546
		);
547
	}
548
549
550

caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php 2 locations

@@ 213-225 (lines=13) @@
210
211
212
213
	protected function _set_list_table_views_event_registrations() {
214
		$this->_views = array(
215
			'all' => array(
216
				'slug' => 'all',
217
				'label' => __('All', 'event_espresso'),
218
				'count' => 0,
219
				'bulk_action' => !isset( $this->_req_data['event_id'] ) ? array() : array(
220
					'toggle_checkin_status' => __('Toggle Check-In', 'event_espresso'),
221
					//'trash_registrations' => __('Trash Registrations', 'event_espresso')
222
					)
223
				),
224
			);
225
	}
226
227
228
@@ 231-240 (lines=10) @@
228
229
230
231
	protected function _set_list_table_views_registration_checkins() {
232
		$this->_views = array(
233
			'all' => array(
234
				'slug' => 'all',
235
				'label' => __('All', 'event_espresso'),
236
				'count' => 0,
237
				'bulk_action' => array( 'delete_checkin_rows' => __('Delete Check-In Rows', 'event_espresso') )
238
				),
239
			);
240
	}
241
242
243

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 556-567 (lines=12) @@
553
554
555
556
	protected function _set_list_table_views_category_list() {
557
		$this->_views = array(
558
			'all' => array(
559
				'slug' => 'all',
560
				'label' => __('All', 'event_espresso'),
561
				'count' => 0,
562
				'bulk_action' => array(
563
					'delete_categories' => __('Delete Permanently', 'event_espresso')
564
					)
565
				)
566
		);
567
	}
568
569
570

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 699-710 (lines=12) @@
696
	/**
697
	 * set views array for List Table
698
	 */
699
	public function _set_list_table_views_global_mtps() {
700
		$this->_views = array(
701
			'in_use' => array(
702
				'slug' => 'in_use',
703
				'label' => __('In Use', 'event_espresso'),
704
				'count' => 0,
705
				'bulk_action' => array(
706
					'trash_message_template' => __('Move to Trash', 'event_espresso')
707
				)
708
			)
709
		);
710
	}
711
712
713