| 1 |
<?php |
<?php |
| 2 |
// $Id: freecommerce.module,v 1.1 2009/10/02 22:18:47 crookednumber Exp $ |
// $Id: freecommerce.module,v 1.2 2009/10/05 20:58:52 crookednumber Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 93 |
if (module_exists('email')) { |
if (module_exists('email')) { |
| 94 |
$form['contacts']['freecommerce_add_cck_email'] = array( |
$form['contacts']['freecommerce_add_cck_email'] = array( |
| 95 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 96 |
'#title' => t('Contact all node emails?'), |
'#title' => t('Contact all node emails'), |
| 97 |
'#description' => t('If checked, any email field (using the CCK email module) attached to a node in the order will be contacted about the order.'), |
'#description' => t('If checked, any email field (using the CCK email module) attached to a node in the order will be contacted about the order.'), |
| 98 |
'#default_value' => variable_get('freecommerce_add_cck_email', 0), |
'#default_value' => variable_get('freecommerce_add_cck_email', 0), |
| 99 |
); |
); |
| 100 |
if (module_exists('nodereference')) { |
if (module_exists('nodereference')) { |
| 101 |
$form['contacts']['freecommerce_add_nodereference_email'] = array( |
$form['contacts']['freecommerce_add_nodereference_email'] = array( |
| 102 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 103 |
'#title' => t('Contact all nodereference emails?'), |
'#title' => t('Contact all nodereference emails'), |
| 104 |
'#description' => t('If checked, any email field indirectly attached to a node in the order (via the CCK nodereference module) will be contacted about the order. USE WITH CAUTION!'), |
'#description' => t('If checked, any email field indirectly attached to a node in the order (via the CCK nodereference module) will be contacted about the order. USE WITH CAUTION!'), |
| 105 |
'#default_value' => variable_get('freecommerce_add_nodereference_email', 0), |
'#default_value' => variable_get('freecommerce_add_nodereference_email', 0), |
| 106 |
); |
); |