From c15369b23496ee0340258442fe73ebd1b30877b6 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Mon, 16 May 2016 15:51:57 +0100 Subject: [PATCH] call hook_fulcrm_shoppingcart_alter_person_add before adding the person --- fulcrm_shoppingcart.module | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fulcrm_shoppingcart.module b/fulcrm_shoppingcart.module index d9acfd0..f24a3d1 100644 --- a/fulcrm_shoppingcart.module +++ b/fulcrm_shoppingcart.module @@ -165,6 +165,8 @@ function fulcrm_shoppingcart_person_add_form_submit( $form, &$form_state ) { $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' ) ); if ( $api_data[ 'success' ] ) { module_invoke_all( 'fulcrm_shoppingcart_person_add', $api_data[ 'data' ] );