|
@@ 682-684 (lines=3) @@
|
| 679 |
|
|
| 680 |
|
/** setup reg status bulk actions **/ |
| 681 |
|
$def_reg_status_actions['approve_registration'] = __('Approve Registrations', 'event_espresso'); |
| 682 |
|
if ( in_array( $match_array['approve_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 683 |
|
$def_reg_status_actions['approve_and_notify_registration'] = __('Approve and Notify Registrations', 'event_espresso'); |
| 684 |
|
} |
| 685 |
|
$def_reg_status_actions['decline_registration'] = __('Decline Registrations', 'event_espresso'); |
| 686 |
|
if ( in_array( $match_array['decline_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 687 |
|
$def_reg_status_actions['decline_and_notify_registration'] = __('Decline and Notify Registrations', 'event_espresso'); |
|
@@ 686-688 (lines=3) @@
|
| 683 |
|
$def_reg_status_actions['approve_and_notify_registration'] = __('Approve and Notify Registrations', 'event_espresso'); |
| 684 |
|
} |
| 685 |
|
$def_reg_status_actions['decline_registration'] = __('Decline Registrations', 'event_espresso'); |
| 686 |
|
if ( in_array( $match_array['decline_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 687 |
|
$def_reg_status_actions['decline_and_notify_registration'] = __('Decline and Notify Registrations', 'event_espresso'); |
| 688 |
|
} |
| 689 |
|
$def_reg_status_actions['pending_registration'] = __('Set Registrations to Pending Payment', 'event_espresso'); |
| 690 |
|
if ( in_array( $match_array['pending_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 691 |
|
$def_reg_status_actions['pending_and_notify_registration'] = __('Set Registrations to Pending Payment and Notify', 'event_espresso'); |
|
@@ 690-692 (lines=3) @@
|
| 687 |
|
$def_reg_status_actions['decline_and_notify_registration'] = __('Decline and Notify Registrations', 'event_espresso'); |
| 688 |
|
} |
| 689 |
|
$def_reg_status_actions['pending_registration'] = __('Set Registrations to Pending Payment', 'event_espresso'); |
| 690 |
|
if ( in_array( $match_array['pending_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 691 |
|
$def_reg_status_actions['pending_and_notify_registration'] = __('Set Registrations to Pending Payment and Notify', 'event_espresso'); |
| 692 |
|
} |
| 693 |
|
$def_reg_status_actions['no_approve_registration'] = __('Set Registrations to Not Approved', 'event_espresso'); |
| 694 |
|
if ( in_array( $match_array['no_approve_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 695 |
|
$def_reg_status_actions['no_approve_and_notify_registration'] = __('Set Registrations to Not Approved and Notify', 'event_espresso'); |
|
@@ 694-696 (lines=3) @@
|
| 691 |
|
$def_reg_status_actions['pending_and_notify_registration'] = __('Set Registrations to Pending Payment and Notify', 'event_espresso'); |
| 692 |
|
} |
| 693 |
|
$def_reg_status_actions['no_approve_registration'] = __('Set Registrations to Not Approved', 'event_espresso'); |
| 694 |
|
if ( in_array( $match_array['no_approve_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 695 |
|
$def_reg_status_actions['no_approve_and_notify_registration'] = __('Set Registrations to Not Approved and Notify', 'event_espresso'); |
| 696 |
|
} |
| 697 |
|
$def_reg_status_actions['cancel_registration'] = __('Cancel Registrations', 'event_espresso'); |
| 698 |
|
if ( in_array( $match_array['cancel_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 699 |
|
$def_reg_status_actions['cancel_and_notify_registration'] = __('Cancel Registrations and Notify', 'event_espresso'); |
|
@@ 698-700 (lines=3) @@
|
| 695 |
|
$def_reg_status_actions['no_approve_and_notify_registration'] = __('Set Registrations to Not Approved and Notify', 'event_espresso'); |
| 696 |
|
} |
| 697 |
|
$def_reg_status_actions['cancel_registration'] = __('Cancel Registrations', 'event_espresso'); |
| 698 |
|
if ( in_array( $match_array['cancel_registration'], $active_mts ) && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'batch_send_messages' ) ) { |
| 699 |
|
$def_reg_status_actions['cancel_and_notify_registration'] = __('Cancel Registrations and Notify', 'event_espresso'); |
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
$this->_views = array( |
| 703 |
|
'all' => array( |