$merge_vars[ $name ] = $this->get_field_value( $form, $entry, $field_id );
}
- $this->add_contact( $merge_vars );
+ $return = $this->add_contact( $merge_vars );
}
public function add_contact($values)
if (is_array($values) && !empty($values)) {
// initialize the streamsend object
$ss = new streamSend( STREAMSEND_BASE_URL, $apiLogin, $apiKey );
- $ss->debug = true;
+ //$ss->debug = true;
$ret = $ss->contactSearch($values['email']);
$contactData = array();
);
}
if (!$contacts) {
- echo '<p><h3>Debug Results</h3>'.$ss->debugBuffer.'</p>';
+ return false;
+ //echo '<p><h3>Debug Results</h3>'.$ss->debugBuffer.'</p>';
}
return true;
}
Plugin Name: Gravity Forms StreamSend Add-On
Plugin URI: http://www.gaslightmedia.com
Description: StreamSend Add on for Gravity Forms
-Version: 1.0
+Version: 1.0.0
Author: Steve Sutton
Author URI: http://www.gaslightmedia.com
*/
-define( 'GLM_STREAMSEND_FEED_ADDON_VERSION', '1.0' );
+define( 'GLM_STREAMSEND_FEED_ADDON_VERSION', '1.0.0' );
/**
* Default parameters for contact create operations.
* Note that these are strings for use in XML data not true/false values.