-- Nikolay Georgiev Open Source Ecology Supporter Website: http://www.nikolay-georgiev.net/blog/ Skype: nikolay.h.georgiev Facebook: http://www.facebook.com/nikolayhg Address: Darmstadt, Germany
My current thought is to use the Rules module and make Actions that
are triggered when a user submits or edits a specific node of the
webform content type.
This would probably mean a CiviCRM API call for signing up for
recurring donations on PayPal since I assume that's not a current
Action in the CiviCRM Rules integration module.
Eduardo and Nick, did you connect with each other?
What is the status with your tasks? - what has been done, are there any
challenges, what remains to be done?
Greetings,
Nikolay
a) first name
b) last name
c) email
and uses it for
1) makes a drupal account for the user
2) enters civicrm data for that user
3) sends an email to the user
4) adds a true fans role
The next step is probably to work on PayPal (or whatever) integration
with the CiviCRM API
Cheers,
Nick
On Sat, Aug 20, 2011 at 8:37 AM, Nikolay Georgiev
1) I used the webform_civicrm module to make the form
2) enabled Rules module and CiviCRM Rules
3) Enabled PHP filter
4)
Trigger
-A webform is submitted
Actions
-PHP snippet as follows:
<?php
$account->is_new = TRUE;
$account->name = $data[civicrm_1_contact_1_contact_first_name][value][0];
$account->name .= $data[civicrm_1_contact_1_contact_last_name][value][0];
$account->password = '2938ufj29j382'; // this should be randomized
$thingie = user_save($account, array('status' => 1));
//drupal_set_message('<pre>'. print_r($thingie, TRUE) .'</pre>');
$form_state['uid'] = $thingie->uid;
user_login_submit(array(), $form_state);
?>
-Add User Role
-Send Email
-Page Redirect