|
|
@ -165,6 +165,8 @@ function fulcrm_shoppingcart_person_add_form_submit( $form, &$form_state ) {
|
|
|
|
|
|
|
|
|
|
|
|
$person_data[ 'uuid' ] = fulcrm_uuid_uuid4();
|
|
|
|
$person_data[ 'uuid' ] = fulcrm_uuid_uuid4();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$person_data = module_invoke_all( 'fulcrm_shoppingcart_alter_person_add', $person_data );
|
|
|
|
|
|
|
|
|
|
|
|
$api_data = fulcrm_apiv2_POST( 'person/', $person_data, $query = array( 'expand' => 'd' ) );
|
|
|
|
$api_data = fulcrm_apiv2_POST( 'person/', $person_data, $query = array( 'expand' => 'd' ) );
|
|
|
|
if ( $api_data[ 'success' ] ) {
|
|
|
|
if ( $api_data[ 'success' ] ) {
|
|
|
|
module_invoke_all( 'fulcrm_shoppingcart_person_add', $api_data[ 'data' ] );
|
|
|
|
module_invoke_all( 'fulcrm_shoppingcart_person_add', $api_data[ 'data' ] );
|
|
|
|