call hook_fulcrm_shoppingcart_alter_person_add before adding the person

master
Marek Isalski 9 years ago
parent 4e37364752
commit c15369b234

@ -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' ] );

Loading…
Cancel
Save