public static function trigger_delete_actions($entry_id, $entry = false)
 {
     if (empty($entry)) {
         $entry = FrmEntry::getOne($entry_id);
     }
     FrmFormActionsController::trigger_actions('delete', $entry->form_id, $entry);
 }
 public function entry_created($entry_id, $form_id)
 {
     _deprecated_function(__FUNCTION__, '2.0', 'FrmFormActionsController::trigger_actions("create", ' . $form_id . ', ' . $entry_id . ', "email")');
     FrmFormActionsController::trigger_actions('create', $form_id, $entry_id, 'email');
 }
 public static function send_email()
 {
     if (current_user_can('frm_view_forms') || current_user_can('frm_edit_forms') || current_user_can('frm_edit_entries')) {
         if (FrmAppHelper::doing_ajax()) {
             check_ajax_referer('frm_ajax', 'nonce');
         }
         $entry_id = FrmAppHelper::get_param('entry_id', '', 'get', 'absint');
         $form_id = FrmAppHelper::get_param('form_id', '', 'get', 'absint');
         printf(__('Resent to %s', 'formidable'), '');
         add_filter('frm_echo_emails', '__return_true');
         FrmFormActionsController::trigger_actions('create', $form_id, $entry_id, 'email');
     } else {
         _e('Resent to No one! You do not have permission', 'formidable');
     }
     wp_die();
 }