@@ 382-385 (lines=4) @@ | ||
379 | return $send_messages; |
|
380 | } |
|
381 | } |
|
382 | } else { |
|
383 | EE_Error::add_error( sprintf( __('Message type: %s does not exist', 'event_espresso'), $type ), __FILE__, __FUNCTION__, __LINE__ ); |
|
384 | return false; |
|
385 | } |
|
386 | // add a success message |
|
387 | if ( ! $error ) { |
|
388 | EE_Error::add_success( sprintf( __( 'The %s message has been successfully sent.', 'event_espresso'), $installed_message_types[$type]->label['singular'] ), __FILE__, __FUNCTION__, __LINE__ ); |
|
@@ 432-435 (lines=4) @@ | ||
429 | return FALSE; |
|
430 | } |
|
431 | ||
432 | } else { |
|
433 | EE_Error::add_error( sprintf( __('Message type: %s does not exist', 'event_espresso'), $type ), __FILE__, __FUNCTION__, __LINE__ ); |
|
434 | return FALSE; |
|
435 | } |
|
436 | ||
437 | } |
|
438 |
@@ 568-571 (lines=4) @@ | ||
565 | $regs_to_send = array(); |
|
566 | ||
567 | //first let's make sure we have the reg id (needed for resending!); |
|
568 | if ( ! isset( $req_data['_REG_ID'] ) ) { |
|
569 | EE_Error::add_error( __('Something went wrong because we\'re missing the registration ID', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ ); |
|
570 | return false; |
|
571 | } |
|
572 | ||
573 | //if $req_data['_REG_ID'] is an array then let's group the registrations by transaction and reg status |
|
574 | // so we can only trigger messages per group. |