|
@@ 654-656 (lines=3) @@
|
| 651 |
|
); |
| 652 |
|
/** setup reg status bulk actions **/ |
| 653 |
|
$def_reg_status_actions['approve_registration'] = __('Approve Registrations', 'event_espresso'); |
| 654 |
|
if (in_array($match_array['approve_registration'], $active_mts) |
| 655 |
|
&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'batch_send_messages') |
| 656 |
|
) { |
| 657 |
|
$def_reg_status_actions['approve_and_notify_registration'] = __('Approve and Notify Registrations', |
| 658 |
|
'event_espresso'); |
| 659 |
|
} |
|
@@ 661-663 (lines=3) @@
|
| 658 |
|
'event_espresso'); |
| 659 |
|
} |
| 660 |
|
$def_reg_status_actions['decline_registration'] = __('Decline Registrations', 'event_espresso'); |
| 661 |
|
if (in_array($match_array['decline_registration'], $active_mts) |
| 662 |
|
&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'batch_send_messages') |
| 663 |
|
) { |
| 664 |
|
$def_reg_status_actions['decline_and_notify_registration'] = __('Decline and Notify Registrations', |
| 665 |
|
'event_espresso'); |
| 666 |
|
} |
|
@@ 668-670 (lines=3) @@
|
| 665 |
|
'event_espresso'); |
| 666 |
|
} |
| 667 |
|
$def_reg_status_actions['pending_registration'] = __('Set Registrations to Pending Payment', 'event_espresso'); |
| 668 |
|
if (in_array($match_array['pending_registration'], $active_mts) |
| 669 |
|
&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'batch_send_messages') |
| 670 |
|
) { |
| 671 |
|
$def_reg_status_actions['pending_and_notify_registration'] = __('Set Registrations to Pending Payment and Notify', |
| 672 |
|
'event_espresso'); |
| 673 |
|
} |
|
@@ 675-677 (lines=3) @@
|
| 672 |
|
'event_espresso'); |
| 673 |
|
} |
| 674 |
|
$def_reg_status_actions['no_approve_registration'] = __('Set Registrations to Not Approved', 'event_espresso'); |
| 675 |
|
if (in_array($match_array['no_approve_registration'], $active_mts) |
| 676 |
|
&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'batch_send_messages') |
| 677 |
|
) { |
| 678 |
|
$def_reg_status_actions['no_approve_and_notify_registration'] = __('Set Registrations to Not Approved and Notify', |
| 679 |
|
'event_espresso'); |
| 680 |
|
} |
|
@@ 682-684 (lines=3) @@
|
| 679 |
|
'event_espresso'); |
| 680 |
|
} |
| 681 |
|
$def_reg_status_actions['cancel_registration'] = __('Cancel Registrations', 'event_espresso'); |
| 682 |
|
if (in_array($match_array['cancel_registration'], $active_mts) |
| 683 |
|
&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'batch_send_messages') |
| 684 |
|
) { |
| 685 |
|
$def_reg_status_actions['cancel_and_notify_registration'] = __('Cancel Registrations and Notify', |
| 686 |
|
'event_espresso'); |
| 687 |
|
} |