Thanks, actually I ended up doing something more or less like that, but hadn't yet had the chance to post back:
After this (around line 1084/5 - I made a slight mod also here as not to parse certain form elements types):
foreach($form['items'] as $item) { //TODO! Tidy up ifs // NJW MOD - Ignore submit and sentoemail fields for message generation if ( !
ereg('boilerplate|groupstart|groupend|reset|submit',
$item['item_type'])) { //TODO! Need to add some logic for multiple selects (when supported) if (!
in_array($item['item_name'],
$dup_list) &&
$user_data[$item['item_name']] &&
$item['item_name']!=
'sendto_email') { $message =
$message.
$item['item_name'].
' = '.
$user_data[$item['item_name']].
" \n\n";
$dup_list[] =
$item['item_name'];
}
I added the following:
// NJW MOD override sendtoemail
if ( $item['item_name'] == 'sendto_email' ) {
$email_address = $user_data[$item['item_name']];
}
So the field name for the select list or whatever would be "sendto_email" and override the regular email. Your's looks slightly cleaner - perhaps I'll refer back to if if there are problems...
Thanks for the reply,
ainigma32. A module like that sure shows some promise, to bad it's not being developed anymore.
There's Klingons on the starboard bow, starboard bow, starboard bow. There's Klingons on the starboard bow - SCRAPE 'EM OFF JIM!!!
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info...