| 1 |
<?php |
<?php |
| 2 |
// $Id: invisimail.module,v 1.3.4.7 2009/06/18 21:25:01 crell Exp $ |
// $Id: invisimail.module,v 1.3.4.8 2009/06/29 22:19:44 crell Exp $ |
| 3 |
|
|
| 4 |
define('INVISIMAIL_MAILTO_ASCII', 'mailto:'); |
define('INVISIMAIL_MAILTO_ASCII', 'mailto:'); |
| 5 |
|
|
| 34 |
$items['admin/settings/invisimail'] = array( |
$items['admin/settings/invisimail'] = array( |
| 35 |
'title' => t('Invisimail formatter'), |
'title' => t('Invisimail formatter'), |
| 36 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 37 |
'page arguments' => array('invismail_formatter_settings'), |
'page arguments' => array('invisimail_formatter_settings'), |
| 38 |
'access arguments' => array('administer invisimail formatter'), |
'access arguments' => array('administer invisimail formatter'), |
| 39 |
'type' => MENU_NORMAL_ITEM, |
'type' => MENU_NORMAL_ITEM, |
| 40 |
); |
); |
| 302 |
$form['invisimail_js_'.$format] = array( |
$form['invisimail_js_'.$format] = array( |
| 303 |
'#type' => 'radios', |
'#type' => 'radios', |
| 304 |
'#title' => t('JavaScript'), |
'#title' => t('JavaScript'), |
| 305 |
'#default_value' => variable_get('invisimail_js_'.$format, FALSE), |
'#default_value' => variable_get('invisimail_js_'.$format, 0), |
| 306 |
'#options' => array(FALSE => t('No JavaScript - greater compatibility'), TRUE => t('Use JavaScript - greater security')), |
'#options' => array(0 => t('No JavaScript - greater compatibility'), 1 => t('Use JavaScript - greater security')), |
| 307 |
'#description' => t('Selecting "Use JavaScript" will nearly guarantee protection from spam harvesters. However email addresses will not appear for browsers without JavaScript capability.'), |
'#description' => t('Selecting "Use JavaScript" will nearly guarantee protection from spam harvesters. However email addresses will not appear for browsers without JavaScript capability.'), |
| 308 |
); |
); |
| 309 |
|
|
| 310 |
$form['invisimail_link_'.$format] = array( |
$form['invisimail_link_'.$format] = array( |
| 311 |
'#type' => 'radios', |
'#type' => 'radios', |
| 312 |
'#title' => t('Auto-link Emails'), |
'#title' => t('Auto-link Emails'), |
| 313 |
'#default_value' => variable_get('invisimail_link_'.$format, FALSE), |
'#default_value' => variable_get('invisimail_link_'.$format, 0), |
| 314 |
'#options' => array(FALSE => t('Do not create links.'), TRUE => t('Automatically create links from email addresses.')), |
'#options' => array(0 => t('Do not create links.'), 1 => t('Automatically create links from email addresses.')), |
| 315 |
'#description' => t('Selecting "Automatically create links" will convert email addresses into a clickable "mailto:" link.'), |
'#description' => t('Selecting "Automatically create links" will convert email addresses into a clickable "mailto:" link.'), |
| 316 |
); |
); |
| 317 |
|
|