--- C:/Documents and Settings/John/Bureau/textimage-6.x-2.1/textimage/textimage_admin.inc Mon Feb 09 23:42:48 2009
+++ C:/www/website/mdelec/sites/all/modules/textimage/textimage_admin.inc Fri Sep 25 23:52:23 2009
@@ -235,7 +235,7 @@
$form['settings']['text']['case'] = array(
'#type' => 'select',
'#title' => t('Convert to case'),
- '#options' => array('' => t('Default'), 'upper' => t('UPPERCASE'), 'lower' => t('lowercase'), 'ucwords' => t('Uppercase Words'), 'ucfirst' => t('Uppercase first')),
+ '#options' => array('' => t('Default'), 'upper_noaccent' => t('UPPERCASE without accent'), 'upper' => t('UPPERCASE'), 'lower' => t('lowercase'), 'ucwords' => t('Uppercase Words'), 'ucfirst' => t('Uppercase first')),
'#description' => t('Covert the input text to a consistent format. The default makes no changes to input text.'),
'#default_value' => isset($preset['settings']['text']['case']) ? $preset['settings']['text']['case'] : '',
);
@@ -339,6 +339,14 @@
'#maxlength' => 4,
'#size' => 4,
'#validate' => array('_textimage_number_validate' => array('yoffset')),
+ );
+
+ $form['settings']['pattern'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Input Filter Pattern'),
+ '#default_value' => isset($preset['settings']['pattern']) ? $preset['settings']['pattern'] : '',
+ '#description' => t("If this pattern is defined then this profile will be available as an input filter which you can enable on the %inputformats page. When the filter is enabled, anything matching this pattern will be replaced with a textimage image. The pattern should be a perl regular expression. For example, to replace all headings, use: /<h.*?>.*?<\/h.*?>/. To replace only h1 headings, use /<h1.*>.*?<\/h1>/. To define a custom pseudo-html tag (such as <textimage>), use: /<textimage>.*?<\/textimage>/", array('@input-formats-url' => url('admin/settings/filters'), '%inputformats' => 'Administer >> Site configuration >> Input formats')),
+ '#size' => 20,
);
$form['submit'] = array(