Code Duplication    Length = 10-13 lines in 5 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

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

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 629-640 (lines=12) @@
626
	 * @access public
627
	 * @return array
628
	 */
629
	public function _set_list_table_views_default() {
630
		$this->_views = array(
631
			'in_use' => array(
632
				'slug' => 'in_use',
633
				'label' => __('In Use', 'event_espresso'),
634
				'count' => 0,
635
				'bulk_action' => array(
636
					'trash_message_template' => __('Move to Trash', 'event_espresso')
637
				)
638
			)
639
		);
640
	}
641
642
643

admin_pages/venues/Venues_Admin_Page.core.php 1 location

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

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

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